Ignore unrecognized Ctrl keybindings
Currently, unrecognized Ctrl keybindings are treated as if Ctrl wasn't pressed. For example, Ctrl+q results in q being typed. Instead, ignore these keypresses.
This commit is contained in:
parent
cb884725f6
commit
542c307ef2
1 changed files with 6 additions and 0 deletions
6
main.c
6
main.c
|
@ -621,6 +621,12 @@ void keypress(struct menu_state *state, enum wl_keyboard_key_state key_state,
|
||||||
}
|
}
|
||||||
render_frame(state);
|
render_frame(state);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
case XKB_KEY_Return:
|
||||||
|
case XKB_KEY_KP_Enter:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue