fix(ToolbarButton): Don't register shortcut if APP is not defined.
This commit is contained in:
committed by
virtuacoplenny
parent
91e75bf7b9
commit
f18b42b286
@@ -227,7 +227,7 @@ class ToolbarButton extends AbstractToolbarButton {
|
||||
}
|
||||
}
|
||||
|
||||
if (button.shortcut) {
|
||||
if (button.shortcut && APP && APP.keyboardshortcut) {
|
||||
APP.keyboardshortcut.registerShortcut(
|
||||
button.shortcut,
|
||||
button.shortcutAttr,
|
||||
|
||||
Reference in New Issue
Block a user