diff options
-rw-r--r-- | ports/glutin/window.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index 54fd6e56b49..4e154a5f677 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -917,6 +917,11 @@ impl WindowMethods for Window { self.event_queue.borrow_mut().push(WindowEvent::Reload); } } + (CMD_OR_CONTROL, Some('q'), _) => { + if let Some(true) = PREFS.get("shell.builtin-key-shortcuts.enabled").as_boolean() { + self.event_queue.borrow_mut().push(WindowEvent::Quit); + } + } _ => { self.platform_handle_key(key, mods); |