#7889 - Implmenet main shortcuts #655

Merged
jsegarra merged 6 commits from 7889_main_shortcuts into dev 2024-09-02 13:03:20 +00:00
1 changed files with 0 additions and 6 deletions
Showing only changes of commit d3ab56184b - Show all commits

View File

@ -13,12 +13,6 @@ export default {
const handleKeyDown = (event) => { const handleKeyDown = (event) => {
const { ctrlKey, altKey, key } = event; const { ctrlKey, altKey, key } = event;
event.preventDefault(); event.preventDefault();
const combination = `${ctrlKey ? 'Ctrl+' : ''}${
altKey ? 'Alt+' : ''
}${key.toLowerCase()}`;
console.log(ctrlKey, altKey, key, combination);
if (ctrlKey && altKey && keyBindingMap[key]) { if (ctrlKey && altKey && keyBindingMap[key]) {
router.push(keyBindingMap[key]); router.push(keyBindingMap[key]);
} }