Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Move route specific keyboardshortcuts to pages#297

Merged
hojberg merged 1 commit into
mainfrom
route-keyboard-shortcuts
Jan 5, 2022
Merged

Move route specific keyboardshortcuts to pages#297
hojberg merged 1 commit into
mainfrom
route-keyboard-shortcuts

Conversation

@hojberg

@hojberg hojberg commented Jan 5, 2022

Copy link
Copy Markdown
Member

Problem

We don't want Workspace keyboard shortcuts to trigger when on another page like the Catalog.

Solution

Only pass submessages down to sub pages if the corresponding route is active.

Notably this also means that things like the Finder are no longer an App concern, by a Workspace shortcut. There's a few other things that should be moved down a layer like toggling the sidebar, but this should only happen for Share and not for Local (this is not tackled in this effort).

Caveats/Notes

Issues that address things you didn't get to or general notes

Ensure that when we are on the Catalog say, we don't trigger Workspace
keyboardshortcuts.

Notably this also means that things like the Finder are no longer an App
concern, by a Workspace shortcut. There's a few other things that should
be moved down a layer like toggling the sidebar, but this should only
happen for Share and not for Local (this is not tackled in this effort).
@hojberg hojberg requested a review from pchiusano January 5, 2022 15:08
@hojberg hojberg merged commit b3950d4 into main Jan 5, 2022
@hojberg hojberg deleted the route-keyboard-shortcuts branch January 5, 2022 15:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants