-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 8e1ca60a87ee58214d9d56567e76a90098b511f3: path_to: revision_to:
commit 8e1ca60a87ee58214d9d56567e76a90098b511f3 Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com> Date: Fri Apr 2 13:52:30 2010 +0000 Try to fix Num_Lock handling: force application keypad to off when Num_Lock is on, do nothing otherwise. diff --git a/src/command.C b/src/command.C
--- a/src/command.C +++ b/src/command.C @@ -424,12 +424,6 @@ rxvt_term::key_press (XKeyEvent &ev) ctrl = ev.state & ControlMask; meta = ev.state & ModMetaMask; - if (numlock_state || (ev.state & ModNumLockMask)) - { - numlock_state = (ev.state & ModNumLockMask); - set_privmode (PrivMode_aplKP, !numlock_state); - } - kbuf[0] = 0; #ifdef USE_XIM @@ -655,6 +649,8 @@ rxvt_term::key_press (XKeyEvent &ev) bool kp = priv_modes & PrivMode_aplKP ? !shft : shft; unsigned int newlen = 1; + if (ev.state & ModNumLockMask) + kp = false; switch (translate_keypad (keysym, kp)) { #ifndef NO_BACKSPACE_KEY
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 11:03:28 2024