Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Ignore hotkeys when shift is down #37

Closed
wants to merge 2 commits into from

Conversation

KrisBraun
Copy link

Fixes #35

@mbenford
Copy link
Owner

Hi Kris.

As I said in issue #35, I guess a better solution is to ignore any keystroke when a key modifier is on, not only the shift key. I think that will make clear that only the hotkeys alone work, not any other combination of them.

Would you change your PR to address the other modifier keys? Also, I need to ask you to write tests in order to cover that changes. That's very important for me to accept pull requests. In addition to that, please add a prefix to your commit message indicating what the commit is about and what part of the code it affects. In your case, I'd say it would be fix(tagsInput).

I'll appreciate if you could do those fixes. :)

@KrisBraun
Copy link
Author

Certainly. I've added checks for all modifiers. Also started adding a test for one specific case, but couldn't get it to pass right now -- can you spot any obvious issues? I'll take a look again in a day or two when I get the time.

@KrisBraun
Copy link
Author

I apologize for not getting back to this. Glad you were able to finish it. Very grateful for your work on this project.

@mbenford
Copy link
Owner

Hi Kris.

I've worked on some other issues this weekend and ended up fixing this one as well. It'll ship with next release (1.0.1).

Thanks for your time reporting that bug and sending this PR. 👍

Kind regards.

@mbenford mbenford closed this Dec 16, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Left angle bracket (less than) not allowed in input
2 participants