mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +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) {
|
||||
info!("quitting after confirming exit dialog");
|
||||
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