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

fix: shorcut conflicts #203

Merged
merged 3 commits into from
May 26, 2022
Merged

fix: shorcut conflicts #203

merged 3 commits into from
May 26, 2022

Conversation

timc1
Copy link
Owner

@timc1 timc1 commented Apr 21, 2022

Closes #200.

tinykeys fire off all handlers for every key sequence that is matched; ie shortcuts registered with [g, d] and [g] will both be called if a user presses g and d sequentially. In this case, we only want the [g, d] shortcut to be called.

@vercel
Copy link

vercel bot commented Apr 21, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/timc/kbar/GpWCD37DsZunSSnZidMyxvbCz9DE
✅ Preview: https://kbar-git-fix-shortcut-conflicts-timc.vercel.app

@merlindru
Copy link

merlindru commented May 19, 2022

What's needed to get this merged? Would gladly contribute if there's anything left to do!

@vercel
Copy link

vercel bot commented May 22, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
kbar ✅ Ready (Inspect) Visit Preview May 22, 2022 at 3:38AM (UTC)

@timc1
Copy link
Owner Author

timc1 commented May 22, 2022

@merlindru apologies for the delay here! I've been sitting on this implementation and reworked it this evening. We'll just need to add a few test cases for this, which I plan to handle tomorrow.

@timc1 timc1 self-assigned this May 22, 2022
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.

Simultaneous execution of commands that share a shortcut key
2 participants