Changeset 145276 in webkit


Ignore:
Timestamp:
Mar 8, 2013 3:27:11 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Keydown event for 'shift+alt' returns win keycode instead of 'alt'
https://bugs.webkit.org/show_bug.cgi?id=111112

Patch by Chandra Shekar Vallala <brk376@motorola.com> on 2013-03-08
Reviewed by Tony Chang.

.:

Return windows keycode of Alt incase of GDK_META_L, GDK_META_R.

Try press Shift then alt key. The test passes if the shiftKey, altKey values
of JSKeyEvent are true and keycode/which is 18.

  • ManualTests/shift-alt-key-event.html: Added.

Source/WebCore:

Return windows keycode of Alt incase of GDK_META_L, GDK_META_R. This matches
the firefox behaviour in linux platform.

Added Manual Test : ManualTests/shift-alt-key-event.html
Try press Shift then alt key. The test passes if the shiftKey, altKey values
of JSKeyEvent are true and keycode/which is 18.

  • platform/chromium/KeyCodeConversionGtk.cpp:

(WebCore::windowsKeyCodeForKeyEvent):

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r145201 r145276  
     12013-03-08  Chandra Shekar Vallala  <brk376@motorola.com>
     2
     3        [chromium] Keydown event for 'shift+alt' returns win keycode instead of 'alt'
     4        https://bugs.webkit.org/show_bug.cgi?id=111112
     5
     6        Reviewed by Tony Chang.
     7
     8        Return windows keycode of Alt incase of GDK_META_L, GDK_META_R.
     9
     10        Try press Shift then alt key. The test passes if the shiftKey, altKey values
     11        of JSKeyEvent are true and keycode/which is 18.
     12
     13        * ManualTests/shift-alt-key-event.html: Added.
     14
    1152013-03-08  Zan Dobersek  <zdobersek@igalia.com>
    216
  • trunk/Source/WebCore/ChangeLog

    r145268 r145276  
     12013-03-08  Chandra Shekar Vallala  <brk376@motorola.com>
     2
     3        [chromium] Keydown event for 'shift+alt' returns win keycode instead of 'alt'
     4        https://bugs.webkit.org/show_bug.cgi?id=111112
     5
     6        Reviewed by Tony Chang.
     7
     8        Return windows keycode of Alt incase of GDK_META_L, GDK_META_R. This matches
     9        the firefox behaviour in linux platform.
     10
     11        Added Manual Test : ManualTests/shift-alt-key-event.html
     12        Try press Shift then alt key. The test passes if the shiftKey, altKey values
     13        of JSKeyEvent are true and keycode/which is 18.
     14
     15        * platform/chromium/KeyCodeConversionGtk.cpp:
     16        (WebCore::windowsKeyCodeForKeyEvent):
     17
    1182013-03-08  Mike West  <mkwst@chromium.org>
    219
  • trunk/Source/WebCore/platform/chromium/KeyCodeConversionGtk.cpp

    r144821 r145276  
    119119        return VKEY_APPS;  // (5D) Applications key (Natural keyboard)
    120120    case GDK_Alt_L:
     121    case GDK_Meta_L:
    121122        return VKEY_LMENU; // (A4) Left ALT key
    122123    case GDK_Alt_R:
     124    case GDK_Meta_R:
    123125    case GDK_ISO_Level3_Shift:
    124126        return VKEY_RMENU; // (A5) Right ALT key
     
    286288    case GDK_Z:
    287289        return VKEY_Z; //  (5A) Z key case 'z': case 'Z': return 0x5A;
    288     case GDK_Meta_L:
    289290    case GDK_Super_L:
    290291        return VKEY_LWIN; // (5B) Left Windows key (Microsoft Natural keyboard)
    291     case GDK_Meta_R:
    292292    case GDK_Super_R:
    293293        return VKEY_RWIN; // (5C) Right Windows key (Natural keyboard)
Note: See TracChangeset for help on using the changeset viewer.