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

Add controller for easily attaching keyboard shortcuts to buttons and fields #1043

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

allejo
Copy link
Contributor

@allejo allejo commented Jul 29, 2022

I've had this locally in a stash for a while so figured I'd finally push it up. Here's a new controller for quickly attaching keyboard shortcuts to form fields and clickable elements. I haven't written documentation for this controller yet, figured I'd wait on that depending on whether or not this was accepted.

I added a sample use in the Stacks docs to bring focus to the search bar on CTRL + /.

@allejo allejo changed the title Add controller for easily attaching keyboard shortcuts to buttons Add controller for easily attaching keyboard shortcuts to buttons and fields Jul 29, 2022
@netlify
Copy link

netlify bot commented Jul 29, 2022

Deploy Preview for stacks ready!

Name Link
🔨 Latest commit 2c189f0
🔍 Latest deploy log https://app.netlify.com/sites/stacks/deploys/62e43a4867e314000820f120
😎 Deploy Preview https://deploy-preview-1043--stacks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant