[Lazarus] Keyboard info

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Feb 5 12:07:51 CET 2015


On Thu, 05 Feb 2015 10:34:19 +0000
Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> wrote:

> Mattias Gaertner wrote:
> > On Thu, 05 Feb 2015 09:53:49 +0000
> > Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> 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
 

Mattias




More information about the Lazarus mailing list