From f18b42b286b4c6ae93ceca47d86a0dda581bb74e Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Wed, 26 Jul 2017 16:03:16 -0500 Subject: [PATCH] fix(ToolbarButton): Don't register shortcut if APP is not defined. --- react/features/toolbox/components/ToolbarButton.web.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/toolbox/components/ToolbarButton.web.js b/react/features/toolbox/components/ToolbarButton.web.js index ec92cf162..8922ea9e1 100644 --- a/react/features/toolbox/components/ToolbarButton.web.js +++ b/react/features/toolbox/components/ToolbarButton.web.js @@ -227,7 +227,7 @@ class ToolbarButton extends AbstractToolbarButton { } } - if (button.shortcut) { + if (button.shortcut && APP && APP.keyboardshortcut) { APP.keyboardshortcut.registerShortcut( button.shortcut, button.shortcutAttr,