summaryrefslogtreecommitdiff
path: root/js/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/App.js')
-rw-r--r--js/App.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/App.js b/js/App.js
index 571e3373f..e305ce998 100644
--- a/js/App.js
+++ b/js/App.js
@@ -912,7 +912,7 @@ const App = {
if (action_name) {
const action_func = this.hotkey_actions[action_name];
- if (action_func !== null) {
+ if (typeof action_func === 'function') {
action_func(event);
event.stopPropagation();
return false;