Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard shortcuts #2665

Open
7 tasks
adrianthedev opened this issue Apr 6, 2024 · 2 comments
Open
7 tasks

Keyboard shortcuts #2665

adrianthedev opened this issue Apr 6, 2024 · 2 comments
Labels
Feature Help wanted We could use some help with this Javascript Pull requests that update Javascript code Task Something to get done

Comments

@adrianthedev
Copy link
Collaborator

Feature

We'd love to add keyboard shortcuts to Avo.
We already have Mousetrap installed.

Initial shortcuts

We don't need to support "everything" in the initial iteration, so let's pick a few we know they might be highly used.

  • Shift + ? Show a modal with the current shortcuts
  • Command + K Open search (already supported but we want to show it there)
  • command + return Save button
  • command + \ toggle sidebar
  • esc close modal. Ensure it really closes all modals
  • c create button when on an index view
  • anything else?

Current workarounds

Add them with custom JS.

@Paul-Bob
Copy link
Contributor

Paul-Bob commented Apr 8, 2024

Can we make shortcuts configurable? We offer a hash with the default ones and each user can modify if want

@adrianthedev adrianthedev added Help wanted We could use some help with this Feature Task Something to get done Javascript Pull requests that update Javascript code labels Apr 9, 2024
@adrianthedev
Copy link
Collaborator Author

Yes. Through JS, they can attach handlers similar to how we do it now in avo.base.js with the m m m shortcut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Help wanted We could use some help with this Javascript Pull requests that update Javascript code Task Something to get done
Projects
Status: To Do
Development

No branches or pull requests

2 participants