Commit 06a293c7 authored by jmalonzo@webkit.org's avatar jmalonzo@webkit.org

2009-04-27 Fumitoshi Ukai <ukai@google.com>

        Reviewed by Xan Lopez.

        Fix wrong key code conversion.

        Missing conversion for GDK_exlaim ('!').
        Parens are opposite: GDK_parenleft is open paren '('
        and GDK_parenright is close paren ')'.
        https://bugs.webkit.org/show_bug.cgi?id=25367

        * platform/chromium/KeyCodeConversionGtk.cpp:
        (WebCore::windowsKeyCodeForKeyEvent):
        * platform/gtk/KeyEventGtk.cpp:
        (WebCore::windowsKeyCodeForKeyEvent):

git-svn-id: svn://svn.chromium.org/blink/trunk@42893 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 5acb7612
2009-04-27 Fumitoshi Ukai <ukai@google.com>
Reviewed by Xan Lopez.
Fix wrong key code conversion.
Missing conversion for GDK_exlaim ('!').
Parens are opposite: GDK_parenleft is open paren '('
and GDK_parenright is close paren ')'.
https://bugs.webkit.org/show_bug.cgi?id=25367
* platform/chromium/KeyCodeConversionGtk.cpp:
(WebCore::windowsKeyCodeForKeyEvent):
* platform/gtk/KeyEventGtk.cpp:
(WebCore::windowsKeyCodeForKeyEvent):
2009-04-27 Jan Michael Alonzo <jmalonzo@webkit.org> 2009-04-27 Jan Michael Alonzo <jmalonzo@webkit.org>
Reviewed by Gustavo Noronha. Reviewed by Gustavo Noronha.
...@@ -150,9 +150,10 @@ int windowsKeyCodeForKeyEvent(unsigned keycode) ...@@ -150,9 +150,10 @@ int windowsKeyCodeForKeyEvent(unsigned keycode)
case GDK_Help: case GDK_Help:
return VKEY_HELP; // (2F) HELP key return VKEY_HELP; // (2F) HELP key
case GDK_0: case GDK_0:
case GDK_parenleft: case GDK_parenright:
return VKEY_0; // (30) 0) key return VKEY_0; // (30) 0) key
case GDK_1: case GDK_1:
case GDK_exclaim:
return VKEY_1; // (31) 1 ! key return VKEY_1; // (31) 1 ! key
case GDK_2: case GDK_2:
case GDK_at: case GDK_at:
...@@ -176,7 +177,7 @@ int windowsKeyCodeForKeyEvent(unsigned keycode) ...@@ -176,7 +177,7 @@ int windowsKeyCodeForKeyEvent(unsigned keycode)
case GDK_asterisk: case GDK_asterisk:
return VKEY_8; // (38) 8 key '*' return VKEY_8; // (38) 8 key '*'
case GDK_9: case GDK_9:
case GDK_parenright: case GDK_parenleft:
return VKEY_9; // (39) 9 key '(' return VKEY_9; // (39) 9 key '('
case GDK_a: case GDK_a:
case GDK_A: case GDK_A:
......
...@@ -257,9 +257,10 @@ static int windowsKeyCodeForKeyEvent(unsigned int keycode) ...@@ -257,9 +257,10 @@ static int windowsKeyCodeForKeyEvent(unsigned int keycode)
case GDK_Help: case GDK_Help:
return VK_HELP; // (2F) HELP key return VK_HELP; // (2F) HELP key
case GDK_0: case GDK_0:
case GDK_parenleft: case GDK_parenright:
return VK_0; // (30) 0) key return VK_0; // (30) 0) key
case GDK_1: case GDK_1:
case GDK_exclaim:
return VK_1; // (31) 1 ! key return VK_1; // (31) 1 ! key
case GDK_2: case GDK_2:
case GDK_at: case GDK_at:
...@@ -283,7 +284,7 @@ static int windowsKeyCodeForKeyEvent(unsigned int keycode) ...@@ -283,7 +284,7 @@ static int windowsKeyCodeForKeyEvent(unsigned int keycode)
case GDK_asterisk: case GDK_asterisk:
return VK_8; // (38) 8 key '*' return VK_8; // (38) 8 key '*'
case GDK_9: case GDK_9:
case GDK_parenright: case GDK_parenleft:
return VK_9; // (39) 9 key '(' return VK_9; // (39) 9 key '('
case GDK_a: case GDK_a:
case GDK_A: case GDK_A:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment