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

Bug Fixes for Usage with Android Soft Keyboard #195

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HARVS1789UK
Copy link

As per this existing issue the jquery-mentions-input package does not work when trying to @mention things when using Chrome for Android (and probably any other browser on Android, though I haven't checked).

I have based my bug fix on some of the suggestions in that issue. On top of the existing issue raised regarding the keypress event on Android (which is now deprecated) no firing at all, I I also found that the soft keyboard on Android seems to return undefined 0 or 229 (which I think is 'keyboard buffer busy) for both e.keyCode and e.which meaning that much of the logic to update the inputBuffer and decide whether to undertake doSearch() was also failing and it was impossible to identify clicks of the del/backspace key

This fix is still a bit of a hack, which doesn't provide any support for text edits made anywhere but the end of the textarea input (e.g. adding/updating text in the middle of the textarea won't work as expected), but seems to at least provide some support for Android

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