mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
remove useless pref
This commit is contained in:
parent
1cdba8843d
commit
aa72b8783d
2 changed files with 4 additions and 11 deletions
|
@ -83,10 +83,8 @@ impl Browser {
|
|||
fn handle_key_from_window(&mut self, ch: Option<char>, key: Key, state: KeyState, mods: KeyModifiers) {
|
||||
match (mods, ch, key) {
|
||||
(CMD_OR_CONTROL, Some('r'), _) => {
|
||||
if let Some(true) = PREFS.get("shell.builtin-key-shortcuts.enabled").as_boolean() {
|
||||
if let Some(id) = self.browser_id {
|
||||
self.event_queue.push(WindowEvent::Reload(id));
|
||||
}
|
||||
if let Some(id) = self.browser_id {
|
||||
self.event_queue.push(WindowEvent::Reload(id));
|
||||
}
|
||||
}
|
||||
(CMD_OR_CONTROL, Some('l'), _) => {
|
||||
|
@ -105,9 +103,7 @@ impl Browser {
|
|||
}
|
||||
}
|
||||
(CMD_OR_CONTROL, Some('q'), _) => {
|
||||
if let Some(true) = PREFS.get("shell.builtin-key-shortcuts.enabled").as_boolean() {
|
||||
self.event_queue.push(WindowEvent::Quit);
|
||||
}
|
||||
self.event_queue.push(WindowEvent::Quit);
|
||||
}
|
||||
(_, Some('3'), _) => if mods ^ KeyModifiers::CONTROL == KeyModifiers::SHIFT {
|
||||
self.event_queue.push(WindowEvent::CaptureWebRender);
|
||||
|
@ -137,9 +133,7 @@ impl Browser {
|
|||
}
|
||||
}
|
||||
(KeyModifiers::NONE, None, Key::Escape) => {
|
||||
if let Some(true) = PREFS.get("shell.builtin-key-shortcuts.enabled").as_boolean() {
|
||||
self.event_queue.push(WindowEvent::Quit);
|
||||
}
|
||||
self.event_queue.push(WindowEvent::Quit);
|
||||
}
|
||||
_ => {
|
||||
let event = self.platform_handle_key(key, mods);
|
||||
|
|
|
@ -63,7 +63,6 @@
|
|||
"network.http-cache.disabled": false,
|
||||
"network.mime.sniff": false,
|
||||
"session-history.max-length": 20,
|
||||
"shell.builtin-key-shortcuts.enabled": true,
|
||||
"shell.homepage": "https://servo.org",
|
||||
"shell.keep_screen_on.enabled": false,
|
||||
"shell.native-orientation": "both",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue