#7889 - Implmenet main shortcuts #655
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue