diff --git a/src/public/javascripts/widgets/note_tree.js b/src/public/javascripts/widgets/note_tree.js index 80707be14..161633d8f 100644 --- a/src/public/javascripts/widgets/note_tree.js +++ b/src/public/javascripts/widgets/note_tree.js @@ -624,7 +624,11 @@ export default class NoteTreeWidget extends TabAwareWidget { for (const action of actions) { for (const shortcut of action.effectiveShortcuts) { - hotKeyMap[utils.normalizeShortcut(shortcut)] = node => this.triggerCommand(action.actionName, {node}); + hotKeyMap[utils.normalizeShortcut(shortcut)] = node => { + this.triggerCommand(action.actionName, {node}); + + return false; + } } } diff --git a/src/public/javascripts/widgets/tab_caching_widget.js b/src/public/javascripts/widgets/tab_caching_widget.js index 241a23f68..e3e1f1a4e 100644 --- a/src/public/javascripts/widgets/tab_caching_widget.js +++ b/src/public/javascripts/widgets/tab_caching_widget.js @@ -23,7 +23,7 @@ export default class TabCachingWidget extends TabAwareWidget { this.widgets[tabId] = this.widgetFactory(); const $renderedWidget = this.widgets[tabId].render(); - this.widgets[tabId].toggleExt(this.isTab(tabId)); + this.widgets[tabId].toggleExt(false); // new tab is always not active, can be activated after creation this.$widget.after($renderedWidget);