You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just found out that the script does not work on Android (my phone has Android 8.0 and Chromium 86.0.4240.110).
The reason seems to be a Chromium bug where the keyCode of the keyUp event is not properly recognized and it is always 0 or 229. Therefore the condition if (/[a-zA-Z0-9-_ ]/.test(char) || key === 8) is never satisfied.
I have used a simple workaround and replaced this condition with something like: if(self._prevInputValue != self._input.value && validInput(self._input.value))
and it works just fine. I am not a JS guy so there might be a more elegant way.
Regards,
Ikrk
The text was updated successfully, but these errors were encountered:
Hello Carlos,
thanks for the good work.
I have just found out that the script does not work on Android (my phone has Android 8.0 and Chromium 86.0.4240.110).
The reason seems to be a Chromium bug where the keyCode of the keyUp event is not properly recognized and it is always 0 or 229. Therefore the condition
if (/[a-zA-Z0-9-_ ]/.test(char) || key === 8)
is never satisfied.I have used a simple workaround and replaced this condition with something like:
if(self._prevInputValue != self._input.value && validInput(self._input.value))
and it works just fine. I am not a JS guy so there might be a more elegant way.
Regards,
Ikrk
The text was updated successfully, but these errors were encountered: