Answers for "how to detect keyboard layout js"

0

how to detect keyboard layout js

function checkKeyboard(ob,e){
        re = /\d|\w|[\.\$@\*\\\/\+\-\^\!\(\)\[\]\~\%\&\=\?\>\<\{\}\"\'\,\:\;\_]/g;
      a = e.key.match(re);
      if (a == null){
        alert('Error 2:\nNon English keyboard layout is detected!\nSet the keyboard layout to English and try to fill out the field again.');
        ob.val('');
        return false;
      }
      return true;
    }
Posted by: Guest on June-30-2021

Code answers related to "how to detect keyboard layout js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language