Click here to Skip to main content
15,908,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have an application in which a user is presented two fields, one for typing english and second one for typing arabic characters.

i want the keyboard input language to automatically change to arabic when the arabic language field is focused.

is there a javascript library for doing this or any other scripts?
Posted

1 solution

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Jun-15 8:57am    
Good link, a 5.

But I would like to add some explanations. JavaScript cannot access the local system, which is done for safety reason, so it cannot change input languages, and this is good. It this solution, it just handles input events and modifies the input characters.

—SA
xszaboj 22-Jun-15 9:46am    
Yes, exactly.

If you don't want arabic, you would have to rewrite it all to match your needs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900