mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
lint fixup
This commit is contained in:
@@ -64,12 +64,12 @@ function keyboardShortcuts(WrappedComponent) {
|
||||
bindShortcut = (key, callback, options = {}) => {
|
||||
this._mousetrap.bind(key, callback);
|
||||
this._mousetrapBindings[key] = options;
|
||||
}
|
||||
};
|
||||
|
||||
unbindShortcut = (key) => {
|
||||
delete this._mousetrapBindings[key];
|
||||
this._mousetrap.unbind(key);
|
||||
}
|
||||
};
|
||||
|
||||
unbindAllShortcuts = () => {
|
||||
const keys = Object.keys(this._mousetrapBindings);
|
||||
@@ -83,7 +83,7 @@ function keyboardShortcuts(WrappedComponent) {
|
||||
});
|
||||
|
||||
this._mousetrapBindings = {};
|
||||
}
|
||||
};
|
||||
|
||||
stopCallback = (event, element, combo) => {
|
||||
const binding = this._mousetrapBindings[combo];
|
||||
@@ -98,7 +98,7 @@ function keyboardShortcuts(WrappedComponent) {
|
||||
element.tagName === 'TEXTAREA' ||
|
||||
(element.contentEditable && element.contentEditable === 'true')
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
Reference in New Issue
Block a user