mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
add reload keyboard shortcut
rename the preference to shell.builtin-key-shortcuts.enabled
This commit is contained in:
parent
053c2aee0a
commit
909f0da3c2
9 changed files with 57 additions and 4 deletions
|
@ -1341,6 +1341,13 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
self.start_shutting_down();
|
||||
}
|
||||
}
|
||||
|
||||
WindowEvent::Reload => {
|
||||
let msg = ConstellationMsg::Reload;
|
||||
if let Err(e) = self.constellation_chan.send(msg) {
|
||||
warn!("Sending reload to constellation failed ({}).", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue