Browse Source

feat(nc-gui): keyboard manoeuvre - Alt + F

pull/4482/head
Wing-Kam Wong 2 years ago
parent
commit
ca943017a6
  1. 12
      packages/nc-gui/components/general/FullScreen.vue

12
packages/nc-gui/components/general/FullScreen.vue

@ -12,6 +12,18 @@ const isSidebarsOpen = computed({
leftSidebar.toggle(value) leftSidebar.toggle(value)
}, },
}) })
useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
if (e.altKey) {
switch (e.keyCode) {
case 70: {
// ALT + F
isSidebarsOpen.value = !isSidebarsOpen.value
break
}
}
}
})
</script> </script>
<template> <template>

Loading…
Cancel
Save