diff options
Diffstat (limited to 'console-client/pc-kbd.c')
-rw-r--r-- | console-client/pc-kbd.c | 20 |
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 |