Skip to content

Commit

Permalink
Chore: switch shortcut view to / instead of shift
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Vivash authored and Andrew Vivash committed Feb 8, 2024
1 parent ed5e6a8 commit 5536f0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/common/GlobalShortcutHandler.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$workflowsStore.showBuilder = true
}
},
Shift: () => (showShortcuts = true)
'/': () => (showShortcuts = true)
}
// Only register key strokes from the keyMap
Expand Down Expand Up @@ -71,7 +71,7 @@
altKeyCurrentlyPressed = false
}
if (!formElements.includes(tagName) && key === 'Shift') {
if (!formElements.includes(tagName) && key === '/') {
showShortcuts = false
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/GlobalShortcutView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}
const globalShortcutMap: ShortcupMap = {
shift: 'View keyboard shortcuts menu',
'/': 'View keyboard shortcuts menu',
n: 'Show workflow builder',
'esc (in workflow builder)': 'Hide workflow builder',
'a (in workflow builder)': 'Add function to workflow',
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

{#if $sessionStore.session}
<DataWidget />
<!-- <GlobalShortcutHandler /> -->
<GlobalShortcutHandler />
{/if}
</div>
{/if}
Expand Down

0 comments on commit 5536f0b

Please sign in to comment.