-
Notifications
You must be signed in to change notification settings - Fork 333
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
Android issue #127
Comments
@djhvscf Any input? |
Working on it |
@djhvscf I would love to do a pull request. I'm simply a bit lost in the source code :) |
Yes.. but always you have to try! :) |
@djhvscf Any progress? |
@egeriis @djhvscf I run into this issue too running android 4.4.4 inside a webview. I went ahead and just commented out the code inside code snippet:
Now my android app that uses webview has this plugin working again, and it still works on Firefox and Chrome on the desktop. as well as chrome and firefox on android. @djhvscf would you accept a PR for this fix? UPDATE |
Sure please open a PR |
@fmpwizard Did you ever open a PR for this? |
Can you tell us what the fix was here (show us the example code for testing the keyCode as this still seems to be a problem for Android? |
sorry for the delay, what I ended up doing on my project may qualify as a hack, instead of a clean fix. I first bind the
Note that this means that to trigger the drop down auto complete, the And then I made the changes I listed a few messages earlier on this ticket. Hope this helps, it has been working well for us since I implemented several months ago. |
Thanks @fmpwizard , Here`s my iteration to your fix, inorder to make it work cross browser/device(android / ios / desktop)
Hope it helps someone Regards, |
Dear Sir, i am facing mobile (android) chrome problem mention list not showing, Please help me, keypress function is not working on mobile, please help me |
* Adjusts code to remove deprecated jQuery calls * Adds functionality that autocompletes inputs if there's only one result and you press space * Improves support for autocomplete on mobile devices (podio#127)
Hello, I am getting undefined although i am setting the e.keyCode ... in android Did you guys made it work? I am using the code same as @NikunjDoshi mentioned |
Hi @arijit-das - the current release (0.1.4) of my fork is tested working on Android 8 and Android 6 using the built-in keyboard, as part of a website's textbox.
|
Hello @richjeffery ... thanks for answering ...
|
@richjeffery ... No its not working for me ... setTimeout(function(){ e.keyCode = char; to catch the keypress because i have several textarea with mention In android block in onInputBoxInput function, typedValue is always empty. it seems this function is getting called before setting the character. |
@arijit-das - I too use multiple mention inputs on some pages, but my code is slightly different to catch Android keypresses (for example, it's not wrapped in a setTimeout, just within a script block):
I'm actually not sure wrapping it in a setTimeout block would work as expected. In addition, what is the typedValue in |
Hi, @richjeffery , |
Ok it worked for me ... Problem was my code block was getting added before all the textareas in the DOM ... So i made sure the code block is added in the last of those text areas. Wrapping the code block in document.ready doesnot work also |
I added this in my html
and in jquery.mentionsInput.js line 112
to
|
MentionsInput doesn't work at all in Android (4.4.2) at least, since
keyPress
is never triggered.So my question is why the
inputBuffer
is filled from thekeyPress
listener rather than the bottom of thekeyDown
listener?The text was updated successfully, but these errors were encountered: