Skip to content

Commit

Permalink
feat: hide UI with slash key
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelodelain committed Apr 3, 2024
1 parent 503d579 commit ca4d470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/StoriesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ useHead({
const { storiesUIVisible } = useStories()
function onKeyDown(event: KeyboardEvent) {
if (event.metaKey && event.key === '\\') {
if (event.metaKey && (event.key === '\\' || event.key === '/')) {
storiesUIVisible.value = !storiesUIVisible.value
}
}
Expand Down

0 comments on commit ca4d470

Please sign in to comment.