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