0

I need to change language on keyboard after push one key (`) to input form. The same situation as https://www.vivus.ge/register

$(document).ready(function() {
        window.addEventListener('keydown', function(event) {
            var key = event.keyCode;
            if(key == 192) {

            }
        });
    });

I want to make the automatically language switching to fill a form in two different language without swithcing the language of keyboard manually from windows setting (To change the input characters to different language)?

Sebastian Brosch
  • 42,106
  • 15
  • 72
  • 87
cooba777
  • 3
  • 1
  • 2

1 Answers1

0

You cannot change the keyboard layout with Javascript. Javascript has no control over the client OS.

What you can do is change the keys, what they do..

An answer to this question has already been set on this thread: change keyboard layout with javascript

Community
  • 1
  • 1
Thugge
  • 208
  • 1
  • 4
  • 10