mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -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
|
|
@ -51,6 +51,9 @@
|
|||
|
||||
## Unreleased
|
||||
### Added
|
||||
|
||||
* Unicode input mode now accepts input from the numpad as well, numlock is ignored.
|
||||
|
||||
### Changed
|
||||
|
||||
* config: ARGB color values now default to opaque, rather than
|
||||
|
|
|
|||
|
|
@ -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