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

Fixes broken input of modifier characters on MacOSX. #26

Closed
wants to merge 1 commit into from

Conversation

WolfgangD
Copy link

Fixes #25 by checking if the character next to the caret is one of MacOS X supported modifier characters. If this is the case the checker isn't run.

It also does not check if such a character is copy/pasted. However this has no negative effect as the checker will run again when the next character is input.

The modifiers are exhaustive according to http://guides.macrumors.com/Typing_with_extended_characters. If more are added they can easily be added to the modifierCharacters array.

Further discussion

I would have preferred a solution where the special input state (OS is waiting for the second character) is detected but haven't found a way. For a Chrome Extension it looks like a normal character has been entered.

@randallreedjr
Copy link
Contributor

@WolfgangD Could you provide a test for the modified code? Thanks.

@sbrudz
Copy link
Contributor

sbrudz commented Apr 3, 2016

This issue has been resolved by PR #32

@sbrudz sbrudz closed this Apr 3, 2016
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.

3 participants