summaryrefslogtreecommitdiff
path: root/console-client/pc-kbd.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-09-17 17:28:34 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-09-17 17:28:34 +0000
commitc2ed15fbbc61e6e7103928398caa83f6f5e8fbba (patch)
treeffc41553c2a7f04becaad888cb9899fda6ec66d6 /console-client/pc-kbd.c
parentae1ab68ad0207dce4fb0261328a5501c0fb4ddc0 (diff)
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* pc-kbd.c (input_loop): Move code that toggles NumLock after code that handles direct entry of character codes with RightAlt.
Diffstat (limited to 'console-client/pc-kbd.c')
-rw-r--r--console-client/pc-kbd.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/console-client/pc-kbd.c b/console-client/pc-kbd.c
index 3ec6404e..085d1fe0 100644
--- a/console-client/pc-kbd.c
+++ b/console-client/pc-kbd.c
@@ -506,16 +506,6 @@ input_loop (any_t unused)
else if (!down)
state.caps_lock_pressed = 0;
}
- else if (sc == SC_NUMLOCK)
- {
- if (down && !state.num_lock_pressed)
- {
- state.num_lock = !state.num_lock;
- state.num_lock_pressed = 1;
- }
- else if (!down)
- state.num_lock_pressed = 0;
- }
else if (sc == SC_LEFT_CTRL)
state.left_ctrl = down;
else if (sc == SC_LEFT_ALT)
@@ -552,6 +542,16 @@ input_loop (any_t unused)
state.direct = (state.direct << 4) | 0xd;
else if (state.right_alt && down && sc == SC_PAD_PLUS) /* XXX */
state.direct = (state.direct << 4) | 0xe;
+ else if (sc == SC_NUMLOCK)
+ {
+ if (down && !state.num_lock_pressed)
+ {
+ state.num_lock = !state.num_lock;
+ state.num_lock_pressed = 1;
+ }
+ else if (!down)
+ state.num_lock_pressed = 0;
+ }
else if (down && sc < sizeof (sc_to_kc)/sizeof (sc_to_kc[0]))
{
#if QUAERENDO_INVENIETIS