From d55086cf89321710243a456e1258276220c5761e Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 22 Feb 2023 15:48:23 +0530 Subject: [PATCH] refactor(gui): update description Signed-off-by: Pranav C --- .../components/dlg/KeyboardShortcuts.vue | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/nc-gui/components/dlg/KeyboardShortcuts.vue b/packages/nc-gui/components/dlg/KeyboardShortcuts.vue index 8079cd6bf8..d3cf53b122 100644 --- a/packages/nc-gui/components/dlg/KeyboardShortcuts.vue +++ b/packages/nc-gui/components/dlg/KeyboardShortcuts.vue @@ -15,6 +15,9 @@ const dialogShow = computed({ const renderCmdOrCtrlKey = () => { return isMac() ? '⌘' : 'CTRL' } +const renderAltOrOptlKey = () => { + return isMac() ? '⌥' : 'ALT' +} const shortcutList = [ { @@ -197,6 +200,22 @@ const shortcutList = [ keys: [renderCmdOrCtrlKey(), 'Enter'], behaviour: 'Save current expanded form item', }, + { + keys: [renderAltOrOptlKey(), '→'], + behaviour: 'Switch to next row', + }, + { + keys: [renderAltOrOptlKey(), '←'], + behaviour: 'Switch to previous row', + }, + { + keys: [renderAltOrOptlKey(), 'S'], + behaviour: 'Save current expanded form item', + }, + { + keys: [renderAltOrOptlKey(), 'N'], + behaviour: 'Create a new row', + }, ], }, ]