mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
support numpad in unicode mode
This commit is contained in:
parent
3b3477d657
commit
05e6fd969a
2 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue