Bump Webpack plugins and loaders

This commit is contained in:
Qstick 2021-12-24 12:18:14 -06:00
parent 68d8fed659
commit 4f2ccb462b
316 changed files with 1362 additions and 1384 deletions

View file

@ -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