Bug 664219 - Differentiate 7 and KP_7
Differentiate 7 and KP_7
Status: RESOLVED DUPLICATE of bug 113458
Product: gtk+
Classification: Platform
Component: Widget: Other
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-11-16 18:17 UTC by Bastien Nocera
Modified: 2017-09-18 17:52 UTC (History)
2 users (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments

Description Bastien Nocera 2011-11-16 18:17:15 UTC
In all the shortcuts handling code, we treat KP_7 and 7 as two different keys, but display them the same in the shortcuts.

For example:
gtk_accelerator_name_with_keycode (NULL, GDK_KEY_KP_7, NULL, 0);
would return "7", which means that it's impossible to distinguish from the "7/&" key from outside the keypad.

Either they should be treated the same (ditto for Home/KP_Home, etc.), or displayed differently.
Comment 1 Tobias Wolf 2011-11-25 12:41:11 UTC
Don't treat them the same please. Keypad numbers are useful for 'org.gnome.desktop.wm.keybindings move-to-x-x'
Comment 2 Daniel Boles 2017-09-18 17:52:13 UTC

*** This bug has been marked as a duplicate of bug 113458 ***

Note You need to log in before you can comment on or make changes to this bug.