GNOME Bugzilla – Bug 128099
improper handling of keypad when in application keypad mode
Last modified: 2005-02-15 11:30:13 UTC
In application keypad mode, when NumLock is off, XTerm sends escape sequences for KP_Divide, KP_Multiply, KP_Substract, KP_Add and KP_Enter. When NumLock is on, it behaves as in normal mode: it sends literal /, *, -, + and newline. vte always sends escape sequences, disregarding the state of the NumLock modifier. This disallows the user to use the above 5 keys in programs enabling application keypad mode, such as vi and less. The proposed patch makes vte behave like XTerm. Note that in src/keymap.h, VTE_NUMLOCK_MASK is improperly defined to GDK_MOD2_MASK: NumLock isn't always Mod2. Fixing this is left as an exercise for the committer (GDK properly detects the NumLock modifier in gdk/x11/gdkkeys-x11.c, update_keymaps() function; perhaps some gdk_get_numlock_mask() call could be added to the GDK API).
Created attachment 21886 [details] [review] Makes vte's keypad application mode behave like XTerm's
This has been used in Fedora Core since early in november last year. I'm commiting this to CVS now.