mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
input: Intercept Enter key when confirming the exit dialog
This commit is contained in:
@@ -380,6 +380,10 @@ impl State {
|
|||||||
if dialog.is_open() && pressed && raw == Some(Keysym::Return) {
|
if dialog.is_open() && pressed && raw == Some(Keysym::Return) {
|
||||||
info!("quitting after confirming exit dialog");
|
info!("quitting after confirming exit dialog");
|
||||||
this.niri.stop_signal.stop();
|
this.niri.stop_signal.stop();
|
||||||
|
|
||||||
|
// Don't send this Enter press to any clients.
|
||||||
|
this.niri.suppressed_keys.insert(key_code);
|
||||||
|
return FilterResult::Intercept(None);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user