1
0
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:
Taloth Saldono
2020-09-23 00:12:42 +02:00
committed by Qstick
parent 6ad6bf270f
commit 0443cc34c6
2 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -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 = () => {