support numpad in unicode mode

This commit is contained in:
Sivecano 2023-12-29 13:37:07 +01:00 committed by Daniel Eklöf
parent 3b3477d657
commit 05e6fd969a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 5 additions and 0 deletions

View file

@ -90,6 +90,8 @@ unicode_mode_input(struct seat *seat, struct terminal *term,
/* 0-9, a-f, A-F */
if (sym >= XKB_KEY_0 && sym <= XKB_KEY_9)
digit = sym - XKB_KEY_0;
else if (sym >= XKB_KEY_KP_0 && sym <= XKB_KEY_KP_9)
digit = sym - XKB_KEY_KP_0;
else if (sym >= XKB_KEY_a && sym <= XKB_KEY_f)
digit = 0xa + (sym - XKB_KEY_a);
else if (sym >= XKB_KEY_A && sym <= XKB_KEY_F)