How to set default keyboard layout for input boxes, for example when the page gets loaded, we can type in an input text with another keyboard language else than English?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
I'd think about the
lang
attribute. But this is meta-information, I'm really not sure the browser will do anything with it. Never tried it myself.I think that it's possible to catch a
keyCode
of the button, that was pressed, with javascript and then replace the symbol to the appropriate symbol from array.This code helps to understand how to catch a keyCode (it does not depend on keyboard language)