From ca943017a6bf322fdcfea834e3b3ecf6c6cc5bcd Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 24 Nov 2022 13:31:06 +0800 Subject: [PATCH] feat(nc-gui): keyboard manoeuvre - Alt + F --- packages/nc-gui/components/general/FullScreen.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/nc-gui/components/general/FullScreen.vue b/packages/nc-gui/components/general/FullScreen.vue index b1983b2bbf..34d01ecf73 100644 --- a/packages/nc-gui/components/general/FullScreen.vue +++ b/packages/nc-gui/components/general/FullScreen.vue @@ -12,6 +12,18 @@ const isSidebarsOpen = computed({ leftSidebar.toggle(value) }, }) + +useEventListener(document, 'keydown', async (e: KeyboardEvent) => { + if (e.altKey) { + switch (e.keyCode) { + case 70: { + // ALT + F + isSidebarsOpen.value = !isSidebarsOpen.value + break + } + } + } +})