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 128099 - improper handling of keypad when in application keypad mode
improper handling of keypad when in application keypad mode
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.11.x
Other All
: Normal normal
: ---
Assigned To: VTE Maintainers
Nalin Dahyabhai
Depends on:
Blocks:
 
 
Reported: 2003-11-28 09:57 UTC by Jean-Yves Lefort
Modified: 2005-02-15 11:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Makes vte's keypad application mode behave like XTerm's (3.06 KB, patch)
2003-11-28 09:58 UTC, Jean-Yves Lefort
needs-work Details | Review

Description Jean-Yves Lefort 2003-11-28 09:57: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).
Comment 1 Jean-Yves Lefort 2003-11-28 09:58:21 UTC
Created attachment 21886 [details] [review]
Makes vte's keypad application mode behave like XTerm's
Comment 2 Kjartan Maraas 2005-02-15 11:30:13 UTC
This has been used in Fedora Core since early in november last year. I'm
commiting this to CVS now.