mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-11 07:37:10 -07:00
Bump Webpack plugins and loaders
This commit is contained in:
parent
68d8fed659
commit
4f2ccb462b
316 changed files with 1362 additions and 1384 deletions
|
@ -53,14 +53,14 @@ function keyboardShortcuts(WrappedComponent) {
|
|||
bindShortcut = (key, callback, options = {}) => {
|
||||
this._mousetrap.bind(key, callback);
|
||||
this._mousetrapBindings[key] = options;
|
||||
}
|
||||
};
|
||||
|
||||
unbindShortcut = (key) => {
|
||||
if (this._mousetrap != null) {
|
||||
delete this._mousetrapBindings[key];
|
||||
this._mousetrap.unbind(key);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
unbindAllShortcuts = () => {
|
||||
const keys = Object.keys(this._mousetrapBindings);
|
||||
|
@ -74,7 +74,7 @@ function keyboardShortcuts(WrappedComponent) {
|
|||
});
|
||||
|
||||
this._mousetrapBindings = {};
|
||||
}
|
||||
};
|
||||
|
||||
stopCallback = (event, element, combo) => {
|
||||
const binding = this._mousetrapBindings[combo];
|
||||
|
@ -89,7 +89,7 @@ function keyboardShortcuts(WrappedComponent) {
|
|||
element.tagName === 'TEXTAREA' ||
|
||||
(element.contentEditable && element.contentEditable === 'true')
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue