revert control r shortcut
This commit is contained in:
1 parent
7c6a7f64cb
commit
0684f738b4
1 file changed
+2
-9
@@ -41,17 +41,10 @@ impl Shortcut {
|
|||||||
|
|
||||||
impl ShortcutRegistry {
|
impl ShortcutRegistry {
|
||||||
pub fn new<T>(target: &EventLoopWindowTarget<T>) -> Self {
|
pub fn new<T>(target: &EventLoopWindowTarget<T>) -> Self {
|
||||||
let myself = Self {
|
Self {
|
||||||
manager: Rc::new(RefCell::new(ShortcutManager::new(target))),
|
manager: Rc::new(RefCell::new(ShortcutManager::new(target))),
|
||||||
shortcuts: Rc::new(RefCell::new(HashMap::new())),
|
shortcuts: Rc::new(RefCell::new(HashMap::new())),
|
||||||
};
|
}
|
||||||
// prevent CTRL+R from reloading the page which breaks apps
|
|
||||||
let _ = myself.add_shortcut(
|
|
||||||
Some(ModifiersState::CONTROL),
|
|
||||||
KeyCode::KeyR,
|
|
||||||
Box::new(|| {}),
|
|
||||||
);
|
|
||||||
myself
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn call_handlers(&self, id: AcceleratorId) {
|
pub(crate) fn call_handlers(&self, id: AcceleratorId) {
|
||||||
|
|||||||
Reference in new issue
Block a user