mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-08 05:51:47 -07:00
Fixed enter in modal confirmation dialogs
(cherry picked from commit 930742ae2c69a530afe60f76a5824f2722540df8)
This commit is contained in:
parent
58cb0dc556
commit
ace7371b69
2 changed files with 7 additions and 5 deletions
|
@ -56,8 +56,10 @@ function keyboardShortcuts(WrappedComponent) {
|
|||
}
|
||||
|
||||
unbindShortcut = (key) => {
|
||||
delete this._mousetrapBindings[key];
|
||||
this._mousetrap.unbind(key);
|
||||
if (this._mousetrap != null) {
|
||||
delete this._mousetrapBindings[key];
|
||||
this._mousetrap.unbind(key);
|
||||
}
|
||||
}
|
||||
|
||||
unbindAllShortcuts = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue