-
Notifications
You must be signed in to change notification settings - Fork 970
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
Sequences are broken if part of them are unbound #273
Comments
Thanks for this... It is definitely strange behavior, but I think part of it has to do with dynamically adding and removing bindings. If you take a look at this fiddle https://jsfiddle.net/9kov1p60/1/ You will see the case of It's strange though cause it works even if you do this: https://jsfiddle.net/9kov1p60/2/ I will look into it a little further... but I suspect what is actually happening is as soon as you press What you can do in the mean time is always bind the |
Hey, thanks for the workaround but as you can imagine this is only a simplified part of a much bigger application, where a workaround like this (having all possible keyboard shortcuts bound at all times) could become pretty unmanageable
yeah, that does seem to be the case hopefully this can be fixed :) |
I've experienced this as well, and have abstracted mousetrap into a "scope" system. I scope sets of kb commands in to sub objects: then when I call my "mount" or "unmount", I simply --edit:
things go wonky when hitting 'e'
basically the same situation as the first, even though 'e' and 'g e' are never 'bound' at the same time. |
Hi there, we're using Mousetrap latest on a project and are experiencing this exact issue. Has there been any progress on resolving the issue? Any help we can give? We've tried some debugging of the sequence matching but haven't found the root cause yet. |
The issue is strange because adding new binding inside a binder is so weird that the solution should be reviewed. |
We note there is a pull request for a fix: #319 |
The PR works and it would be great if it was merged. |
Take a look at this and follow the instructions on screen to see what I think is a bug
https://jsfiddle.net/9kov1p60/
Basically, if you have two different shortcuts,
g r
andr
, I would expectr
to only fire if it wasn't immediately preceded by ag
... but even more important is that unbindingr
alone should not break the sequenceg r
, but apparently it is.The text was updated successfully, but these errors were encountered: