After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 106913 - shortcuts are broken on numerical keypad
shortcuts are broken on numerical keypad
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Daniel Egger
: 143206 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-02-24 10:47 UTC by Olivier Ripoll
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Olivier Ripoll 2003-02-24 10:47:13 UTC
This may be a GTK issue.
The shorcut usually associated to view->zoom->1:1 is set to the key "1". It
does not work (numerical keypad). If I reset it to a letter, it works. If I
reset it again to one of the figure of the numeric keypad (the menu
displays "1" again), it is broken again. If I set it to the "*" of the
numeric keypad, it works.

I have noticed this with 1.3.11 also.

OS is Mandrake 9.0, i.e. kernel 2.4.19, GTK/Glib 2.0.6
keyboard is a quite classical one (with the "window" key IIRC).

I haven't found this in the opened-bug list, but might be wrong.
Comment 1 Sven Neumann 2003-02-24 11:09:48 UTC
IIRC, this never worked on the numerical keypad. If at all this is a
GTK+ issue. Did you look through the GTK+ bugs?
Comment 2 Olivier Ripoll 2003-02-24 13:39:55 UTC
I have had a look at gtk bugs, but could not find anything like this
there. 

IIRC, gimp 1.2 does work fine with the numeric keypad shortcut (I'll
re-check tonight). But it makes a difference between the "1" and the
numeric keypad "1". So I can redefine the function with numpad "1" and
have what I want (I also redefine the "zoom out" to numpad "-" by the
way, and this works fine in gimp 1.3.x)
Gimp for Win32, on the other hand, does not make any difference
between the classical "1" and the numpad "1".
Comment 3 Sven Neumann 2003-02-24 14:36:41 UTC
GTK+-1.2 allowed you to assign for example KP_1 as a key shortcut
while GTK+-2.2 seems to always interpret the 1 key on the keypad as
'End'. I'd say this is a bug and will reassign it to GTK+.
Comment 4 Sven Neumann 2003-02-24 14:37:39 UTC
Just as a note to the GTK+ developers: This bug was originally filed
against GIMP-1.3.
Comment 5 Olivier Ripoll 2003-02-25 09:25:45 UTC
I confirm it is a GTK bug. I can see the same problem with Freecell.
Although the shortcuts can be changed for some of the numeric keypad
keys (the number), these do not work. The number on the top of the
letters do work.
Comment 6 Olivier Ripoll 2003-02-26 08:58:47 UTC
I change the summary from "do not work" to "are broken" for two reasons:
1- "do not work" suggests that it is impossible to set the shortcut to
a key of the numeric keypad. It is possible to set thes keys as
shortcut, and they appear in the gtk menus as such. But then, pressing
the key has no effect. There is a real bug here, it is not just an
enhancement or feature request.
2- "are broken" emphasizes more the fact that this is a regression, as
it worked and was not broken in gtk 1.2
Comment 7 Owen Taylor 2003-05-21 17:50:15 UTC
Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
                                                                     
                                                                      
        * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need
        to pass the unmasked state to
gdk_keymap_translate_keyboard_state()
        to handle the case where a modifier not in the mask
        (like Num_Lock) changes the key value, so replace
        the masked state with a state/mask pair. (#106913,
        Olivier Ripoll)
                                                                     
                                                                      
        * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
        in state/mask pair to _gtk_key_hash_lookup()

Note that the keypad accelerators are distinct from the
main keyboard, which I think is fine, but see 
bug 106913 for displaying them distinctly.

Note also that the non-NumLock'ed keypad keys - KP_Up,
etc, are mostly disallowed for unshifted accelerators
since they are used for focus navigation.
Comment 8 Owen Taylor 2003-05-21 17:50:56 UTC
Sorry, the display bug is bug 113458.
Comment 9 Sven Neumann 2004-05-26 14:23:04 UTC
*** Bug 143206 has been marked as a duplicate of this bug. ***