-
Notifications
You must be signed in to change notification settings - Fork 540
add on space|comma not respected on Galaxy S7, Nexus 6P, and Nexus 9 #770
Comments
I can confirm this issue exists on Xiaomi Mi4C running Android 6.0.1 (CyanogenMod 13) using Crosswalk as runtime for hybrid application. User-agent: "Mozilla/5.0 (Linux; Android 6.0.1; Mi-4c Build/MHC19Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Crosswalk/22.52.561.4 Mobile Safari/537.36" |
Looks like #692 resolves the issue for commas. This approach probably won't work for spaces unless ngTrim is set to false for the input field. |
The library does automatically sets the ngTrim parameter to false. However, the bug still happens on these devices. I manually patched the library to include the fix from the PR you referenced. But the issue still persists. @YouCantTriforce Did you have any luck with these devices at all? |
I didn't have time to look into it yet. Once I get into fixing this issue I'll definitely post my observations here. |
I've identified the issue as being related to the keyCode value 229. When using a physical keyboard connected to an emulator, the 229 key code does not occur. But if you use the software keyboard of the Android device, emulator or real device, the 229 key code event happens for ANY key pressed. https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html Here is a screenshot of the keydown event object. EDIT: I tried modifying the library to use the keyup event instead of the keydown event. I was able to capture the actual key code from the Samsung software keyboard. However, the user can still type whatever they want, despite the input field validity being set to false. That new effect happened on all devices. I'm going to give up on trying to fix this for now. But I hope this helps someone else create a fix for it. http://stackoverflow.com/questions/17139039/keycode-is-always-zero-in-chrome-for-android |
This issue was selected to be spring-cleaned by a script. More information can be found here. If anyone thinks this was a mistake and this issue should be reopened, please leave a message below explaining why. Before doing so, please consider reading the CONTRIBUTING file. |
Problem devices: Galaxy S7, Nexus 6P, and Nexus 9
Here is how I am invoking the directive:
However, if I hit the return button on the keyboard, it will register the email as a tag. But when I type commas or spaces, nothing happens. This does not affect other Android versions.
The text was updated successfully, but these errors were encountered: