keyboard shortcuts for focusing the attributes, adding a new label and relation

This commit is contained in:
zadam
2020-09-01 23:18:28 +02:00
parent 0aef99b98e
commit 32c88c7481
4 changed files with 44 additions and 11 deletions

View File

@@ -27,7 +27,7 @@ async function setupActionsForElement(scope, $el, component) {
for (const action of actions) {
for (const shortcut of action.effectiveShortcuts) {
utils.bindElShortcut($el, shortcut, () => component.triggerCommand(action.actionName));
utils.bindElShortcut($el, shortcut, () => component.triggerCommand(action.actionName, {tabId: appContext.tabManager.activeTabId}));
}
}
}
@@ -35,7 +35,7 @@ async function setupActionsForElement(scope, $el, component) {
getActionsForScope("window").then(actions => {
for (const action of actions) {
for (const shortcut of action.effectiveShortcuts) {
utils.bindGlobalShortcut(shortcut, () => appContext.triggerCommand(action.actionName));
utils.bindGlobalShortcut(shortcut, () => appContext.triggerCommand(action.actionName, {tabId: appContext.tabManager.activeTabId}));
}
}
});
@@ -112,4 +112,4 @@ export default {
updateDisplayedShortcuts,
setupActionsForElement,
getActionsForScope
};
};