diff --git a/frontend/src/Components/keyboardShortcuts.js b/frontend/src/Components/keyboardShortcuts.js index 713f2bff4..b576a988c 100644 --- a/frontend/src/Components/keyboardShortcuts.js +++ b/frontend/src/Components/keyboardShortcuts.js @@ -67,8 +67,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 = () => {