If by "on" you mean the current one, use KLGetCurrentKeyboardLayout()
and get the properties from the layout it returns.
Was there another variation of "on" you were thinking about?
Generally the only thing that matters is the current keyboard layout.
Otherwise, there is a com.apple.HIToolbox preference
"AppleEnabledInputModes", "AppleKeyboardScripts", and "Keyboard Menu"
but I do not believe reading any of these directly is supported since
they are subject to wild changes.
Ack, at 6/2/06, Maurice Volaski said:
Does anyone know how to tell programmatically whether a particular keyboard
layout is on or not? The International system preference pane lets users
turn keyboard scripts "on" or "off" and the ones that are on show up in the
input menu and only those can be made active.
KLGetKeyboardLayoutProperty will let me fetch the properties for individual
layouts, but as far as I can tell there is no on or off property:
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden