mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-26 06:46:45 -04:00
support numpad in unicode mode
This commit is contained in:
parent
3b3477d657
commit
6ac51e2875
1 changed files with 2 additions and 0 deletions
|
|
@ -90,6 +90,8 @@ unicode_mode_input(struct seat *seat, struct terminal *term,
|
||||||
/* 0-9, a-f, A-F */
|
/* 0-9, a-f, A-F */
|
||||||
if (sym >= XKB_KEY_0 && sym <= XKB_KEY_9)
|
if (sym >= XKB_KEY_0 && sym <= XKB_KEY_9)
|
||||||
digit = sym - XKB_KEY_0;
|
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)
|
else if (sym >= XKB_KEY_a && sym <= XKB_KEY_f)
|
||||||
digit = 0xa + (sym - XKB_KEY_a);
|
digit = 0xa + (sym - XKB_KEY_a);
|
||||||
else if (sym >= XKB_KEY_A && sym <= XKB_KEY_F)
|
else if (sym >= XKB_KEY_A && sym <= XKB_KEY_F)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue