How to get Input Menu setting + key characters?
How to get Input Menu setting + key characters?
- Subject: How to get Input Menu setting + key characters?
- From: Christopher Corbell <email@hidden>
- Date: Mon, 19 May 2003 20:51:18 -0700
I'm internationalizing an app that lets the user map keys on the
physical
keyboard for custom purposes (not text input). The keyboard is
displayed
graphically in a manner similar to KeyCaps.app. Like KeyCaps, I want to
update when the user selects a different input setting from the
international
Input Menu, and also generally honor the system preference setting for
this
(which may or may not be the same as the preferred language).
For this I think I need to do two things:
1.) determine the input setting. How is this done for Cocoa / Jaguar?
2.) best-case, be able to find out the current character (single or
double-byte)
mapped to a given keyboard code. I see different character codes come
in
from the same key-code in NSEvent when I change the input setting, but
can
I find out this key-char mapping without waiting for an event? (Or do I
need
to build my own table and build resources for all these mappings?)
Thanks in advance for help,
Christopher
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.