Bug 1339509 - Map ISO_Left_Tab to DOM Tab key. r=karlt, a=jcristau
authorMasayuki Nakano <masayuki@d-toybox.com>
Fri, 17 Feb 2017 16:47:35 +0900
changeset 378610 3cd7637cb8733d8b08e15b387c8bafcd6e2a4999
parent 378609 025f8110974059ac7884d8b4316c9168afcc8d96
child 378611 485a44ead9f48a6013a4ecd86598a9691955aad2
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt, jcristau
bugs1339509
milestone53.0a2
Bug 1339509 - Map ISO_Left_Tab to DOM Tab key. r=karlt, a=jcristau Shift + Tab key combination causes ISO_Left_Tab keysym instead of Tab. It should be mapped to DOM Tab key. MozReview-Commit-ID: IgQj7tkQdoJ
widget/NativeKeyToDOMKeyName.h
--- a/widget/NativeKeyToDOMKeyName.h
+++ b/widget/NativeKeyToDOMKeyName.h
@@ -196,16 +196,17 @@ KEY_MAP_GTK     (Enter, GDK_3270_Enter)
 KEY_MAP_ANDROID (Enter, AKEYCODE_DPAD_CENTER)
 KEY_MAP_ANDROID (Enter, AKEYCODE_ENTER)
 KEY_MAP_ANDROID (Enter, AKEYCODE_NUMPAD_ENTER)
 
 // Tab
 KEY_MAP_WIN     (Tab, VK_TAB)
 KEY_MAP_COCOA   (Tab, kVK_Tab)
 KEY_MAP_GTK     (Tab, GDK_Tab)
+KEY_MAP_GTK     (Tab, GDK_ISO_Left_Tab) // Shift+Tab
 KEY_MAP_GTK     (Tab, GDK_KP_Tab)
 KEY_MAP_ANDROID (Tab, AKEYCODE_TAB)
 
 /******************************************************************************
  * Navigation Keys
  ******************************************************************************/
 // ArrowDown
 KEY_MAP_WIN     (ArrowDown, VK_DOWN)