Page 1 of 1

changing the keyboard layout?

Posted: Tue Jan 02, 2018 10:07 pm
by danielrr
Is there a way to change between the installed keyboard layouts using livecode? (this is useful when you want the user to write in different languages in different fields)

Daniel

Re: changing the keyboard layout?

Posted: Wed Feb 28, 2018 11:38 am
by richmond62
As far as I'm aware the only way to do this would be to trap rawKeyDown and/or rawKeyUp in fields:
BIF1.png
BIF1.png (25.27 KiB) Viewed 3064 times
BIF2.png
BIFOCAL.livecode.zip
(16.24 KiB) Downloaded 280 times
Here's the stack.

I'm afraid, for a whole keyboard this will involve a lot of work: I know because of my 8 year's work
on my Devawriter Pro:

http://andregarzia.on-rev.com/richmond/home.html

I'm a "lazy toad", so this stack will ONLY trap for the key that produces a "q" on an English-language keyboard ('a' on French and German ones).

Re: changing the keyboard layout?

Posted: Wed Feb 28, 2018 12:39 pm
by richmond62
The big ADVANTAGE of this method is that you can force whatever
keyboard layout you wish on your end-user, regardless of what
their "home" keyboard and/or keyboard layout is.
Telegu.jpg
No more headaches any more. :D