This commit is contained in:
Carl Fuchs 2023-02-03 16:58:54 +01:00
parent 532151b939
commit 62abd3ff03
4 changed files with 85 additions and 4 deletions

View file

@ -56,9 +56,18 @@ export function InitActions(
menuActions.set(
'elements-sidebar-row',
[{
text: Text({ textId: '@ReplaceByContainer' }),
title: Text({ textId: '@ReplaceByContainerTitle' }),
shortcut: '<kbd>R</kbd>',
action: (target: HTMLElement) => {
const id = target.id;
console.log('replace');
}
}, {
text: Text({ textId: '@DeleteContainer' }),
title: Text({ textId: '@DeleteContainerTitle' }),
shortcut: '<kbd>Suppr</kbd>',
action: (target: HTMLElement) => {
const id = target.id;
const newHistory = DeleteContainer(
@ -68,7 +77,8 @@ export function InitActions(
);
setNewHistory(newHistory);
}
}]
}
]
);
menuActions.set(