[Lazarus] Keyboard info
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Thu Feb 5 12:49:44 CET 2015
Mattias Gaertner wrote:
>>>> How can a program get a general idea of the current keyboard layout,
>>>> i.e. (primarily) whether the operating system thinks it's in America or
>>>> the UK, and (secondarily) whether it's QWERTY or e.g. Dvorak?
>>> Under Linux/X?
>> Principally yes, but if it gave hints under other OSes it would be icing
>> on the cake.
>
> For X:
> setxkbmap -print
> or via program
> https://github.com/nonpop/xkblayout-state
Thanks, noted the program stuff which looks useful. I admit that I was
rather expecting to be pointed brusquely at some existing LCL or FCL
stuff... can I get e.g. current country from locale stuff, and where do
I find it?
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list