1
0
Fork 0
forked from wry/wry

input: ignored caps_lock and num_lock during modifire matching

This commit is contained in:
Julian Orth 2022-07-27 07:55:48 +02:00
parent 6b4d16aba7
commit 6bc7330989
2 changed files with 10 additions and 2 deletions

View file

@ -150,6 +150,9 @@ impl Seat {
/// The closure is invoked when the user presses the last key of the modified keysym.
/// Note that the keysym is calculated without modifiers applied. To perform an action
/// when `SHIFT+k` is pressed, use `SHIFT | SYM_k` not `SHIFT | SYM_K`.
///
/// CapsLock and NumLock are ignored during modifier evaluation. Therefore, bindings
/// containing these modifiers will never be invoked.
pub fn bind<T: Into<ModifiedKeySym>, F: Fn() + 'static>(self, mod_sym: T, f: F) {
get!().bind(self, mod_sym, f)
}