mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Ensure mousetrap instance exists in unbindShortcut
(cherry picked from commit 930742ae2c69a530afe60f76a5824f2722540df8)
This commit is contained in:
@@ -67,8 +67,10 @@ function keyboardShortcuts(WrappedComponent) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
unbindShortcut = (key) => {
|
unbindShortcut = (key) => {
|
||||||
delete this._mousetrapBindings[key];
|
if (this._mousetrap != null) {
|
||||||
this._mousetrap.unbind(key);
|
delete this._mousetrapBindings[key];
|
||||||
|
this._mousetrap.unbind(key);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
unbindAllShortcuts = () => {
|
unbindAllShortcuts = () => {
|
||||||
|
Reference in New Issue
Block a user