Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make quit-on-escape optional #11200

Merged
merged 1 commit into from May 16, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Make quit-on-escape optional

  • Loading branch information
paulrouget committed May 16, 2016
commit 911a67b400148f637d2fbb321b82fb633d8759c3
@@ -34,6 +34,7 @@ use util::geometry::ScreenPx;
use util::opts;
#[cfg(not(target_os = "android"))]
use util::opts::RenderApi;
use util::prefs;
use util::resource_files;

static mut g_nested_event_loop_listener: Option<*mut (NestedEventLoopListener + 'static)> = None;
@@ -768,7 +769,9 @@ impl WindowMethods for Window {
}

(NONE, Key::Escape) => {
self.event_queue.borrow_mut().push(WindowEvent::Quit);
if let Some(true) = prefs::get_pref("shell.quit-on-escape.enabled").as_boolean() {
self.event_queue.borrow_mut().push(WindowEvent::Quit);
}
}

(CMD_OR_ALT, Key::Right) => {
@@ -55,6 +55,7 @@
"layout.writing-mode.enabled": false,
"network.http.redirection-limit": 20,
"network.mime.sniff": false,
"shell.homepage": "http://servo.org",
"shell.native-titlebar.enabled": true,
"shell.homepage": "http://servo.org"
"shell.quit-on-escape.enabled": true
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.