mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-23 22:25:14 -04:00
Fixed enter in modal confirmation dialogs
(cherry picked from commit 930742ae2c69a530afe60f76a5824f2722540df8)
This commit is contained in:
@@ -77,8 +77,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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user