fix(ToolbarButton): Don't register shortcut if APP is not defined.

This commit is contained in:
hristoterezov 2017-07-26 16:03:16 -05:00 committed by virtuacoplenny
parent 91e75bf7b9
commit f18b42b286
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class ToolbarButton extends AbstractToolbarButton {
}
}
if (button.shortcut) {
if (button.shortcut && APP && APP.keyboardshortcut) {
APP.keyboardshortcut.registerShortcut(
button.shortcut,
button.shortcutAttr,