Web page Stop/Start or load a different language

I have a web page that has 2 areas in which a user can create text. One is English (most of the time) and the other is another language like Hindi, Spanish etc.
When the user clicks into the second editor, is there a way to change the on screen keyboard from its current value (maybe English) to the other value (say Hindi) stored on the screen as a text “Hindi” (or the keyboard name)?
I would like to be able to automatically change the keyboard language based upon which text editor are that is being used.
Thanks

I suspect that it will depend on your editor you are using within your web app.

The KeymanWeb API allows you to control which elements a keyboard is attached to, and have more than one keyboard attached to different elements. Using

kmw.setKeyboardForControl()

An example is available at Control-by-Control Example

See Function: setKeyboardForControl

1 Like