mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 01:23:57 +08:00
fix events from keyboard shortcuts
This commit is contained in:
parent
72cc54a83f
commit
280955b3a2
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue