add reload keyboard shortcut

rename the preference to shell.builtin-key-shortcuts.enabled
This commit is contained in:
mrmiywj 2016-06-23 17:32:33 +08:00
parent 053c2aee0a
commit 909f0da3c2
9 changed files with 57 additions and 4 deletions

View file

@ -77,6 +77,8 @@ pub enum WindowEvent {
Quit,
/// Sent when a key input state changes
KeyEvent(Key, KeyState, KeyModifiers),
/// Sent when Ctr+R/Apple+R is called to reload the current page.
Reload,
}
impl Debug for WindowEvent {
@ -99,6 +101,7 @@ impl Debug for WindowEvent {
WindowEvent::ResetZoom => write!(f, "ResetZoom"),
WindowEvent::Navigation(..) => write!(f, "Navigation"),
WindowEvent::Quit => write!(f, "Quit"),
WindowEvent::Reload => write!(f, "Reload"),
}
}
}