fix: treat kp_ numerics and operators as input keys
This commit is contained in:
parent
ea46f6559d
commit
13257888fd
1 changed files with 3 additions and 1 deletions
|
|
@ -29,7 +29,9 @@ pub const mouse = struct {
|
|||
/// Does this key represent input?
|
||||
pub fn is_non_input_key(w: Key) bool {
|
||||
return switch (w) {
|
||||
vaxis.Key.insert...vaxis.Key.iso_level_5_shift => true,
|
||||
vaxis.Key.insert...vaxis.Key.f34 => true,
|
||||
// skip kp_0 to kp_separator (which are between f34 and kp_left)
|
||||
vaxis.Key.kp_left...vaxis.Key.iso_level_5_shift => true,
|
||||
vaxis.Key.enter => true,
|
||||
vaxis.Key.tab => true,
|
||||
vaxis.Key.escape => true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue