-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Backspace not fired when cursor after item in Chrome for Android #113
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
Comments
Thanks for the report! It works on Mobile Chrome for iOS. I'm downloading an Android Emulator... I'll try to reproduce it and get it fixed. |
Android-x86 won't work -- Chrome only runs on Android for ARM, so you'll have to use QEMU. |
Reproduced it. After some research, it seems to be an issue with Android itself at the OS level and it affects a number of other libraries. Backspace events are simply not fired when an input is empty. Take a look at:
Fixing this is going to be an ugly hack. |
What about making the remove plugin work for single select lists too? That way at least there's a way to clear the items even when backspace isn't working. |
FWIW, the version of Codemirror in this project works fine (backspace working) on Android (I'm running a nexus 4): https://code.google.com/p/codemirror-android/source/browse/assets/codemirror2/lib/codemirror.js |
I'm having the same issue here, using selectize 0.9.0 on my Nexus 4 Android 4.4.2 |
Hi all, I've found a quick and dirty solution for this issue, it seems to work decently as a workaround:
|
@apeacox thanks for the quick and dirty fix! works just fine though anyone attempting this, be warned that the behaviour will differ slightly for iOS and android when trying to backspace -- tapping on the select will clear the selection on android. |
@gczh yeah, my fault not specifying it: more than a solution, it's a workaround to gracefully degrade on android devices. |
To those looking into this issue, Chrome Mobile will be fixed in the next release (which may occur in october 2014). |
This seems to be fixed now to me. Close? |
Im still having this issue. |
Just updated to 6.01 on Sony Xperia, and I'm also still experiencing the issue. |
I see the need, but that's not an easy one. Anyone has a reasonable solution? |
@joallard I made this workaround on the angular-selectize directive: machineboy2045/angular-selectize#139 It allows for an easy way to add a special 'clear option' in the dropdown itself. When selected, it will clear the input. I guess a possibility like this in the selectize library itself would not only solve the problem, but be a nice feature? |
Seeing chromium#118639 was closed as @rasmuscnielsen I'm sorry, I'll have to disagree with the UX here. What I could see as viable workarounds however, is that one use the RemoveButton plugin, or have a |
I've fooled around on https://w3c.github.io/uievents/tools/key-event-viewer.html a bit to see what we could do for an ugly workaround. Here's the event log of what happened:
Seems that the one backspace we want is the one that has no input event, and keyup and keydown. We could work around that, say that if you're on Chrome Android, and the input value was empty, you down 229 and it is still empty, that's a backspace. We could also wait until they release compositionstart and work with that. |
Fix for Android keypress and wrong keycode (selectize#321, selectize#113)
I'm currently having this issue using Google Keyboard and Huawei Sywpe Keyboard. |
closing stale issues older than one year. |
This issue is still occuring on Firefox for Android 106.1.0 (Android 10). My workaround (insipred by @andreapavon) is onType: function(text) {
if (text.length <= 1) {
this.clear();
}
} Which simply clears the control once the user starts typing. Works well enough for me. |
Uh oh!
There was an error while loading. Please reload this page.
(@joallard edit: 0. Use Google stock keyboard)
This happens for me on:
Android 4.3, Nexus 7 (build
JWR66Y
), Chrome 29 [latest stable].If you need any more info, please let me know.
The text was updated successfully, but these errors were encountered: