changing the keyboard layout?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
danielrr
Posts: 142
Joined: Mon Mar 04, 2013 4:03 pm

changing the keyboard layout?

Post 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
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: changing the keyboard layout?

Post 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 3505 times
BIF2.png
BIFOCAL.livecode.zip
(16.24 KiB) Downloaded 351 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).
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: changing the keyboard layout?

Post 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
Post Reply