mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 09:16:45 +01:00
launcher improvements
This commit is contained in:
@@ -15,14 +15,14 @@ export default class ShortcutComponent extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
bindNoteShortcutHandler(attr) {
|
||||
const handler = () => appContext.tabManager.getActiveContext().setNote(attr.noteId);
|
||||
const namespace = attr.attributeId;
|
||||
bindNoteShortcutHandler(label) {
|
||||
const handler = () => appContext.tabManager.getActiveContext().setNote(label.noteId);
|
||||
const namespace = label.attributeId;
|
||||
|
||||
if (attr.isDeleted) {
|
||||
if (label.isDeleted) {
|
||||
shortcutService.removeGlobalShortcut(namespace);
|
||||
} else {
|
||||
shortcutService.bindGlobalShortcut(attr.value, handler, namespace);
|
||||
shortcutService.bindGlobalShortcut(label.value, handler, namespace);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user