sq.h changes, grabbed reserved field in sqKeyboardEvent
John M McIntosh
johnmci at smalltalkconsulting.com
Fri Mar 31 20:44:18 UTC 2006
k, so on the key up/down can we pass up the unicode value? At least
on the mac at that point I know the unicode values in relationship to
what the keyboard interaction was.
On 31-Mar-06, at 12:15 PM, Andreas Raab wrote:
> Here is another run at the fence:
> John M McIntosh wrote:
>> Sure I can return 42 the magic number from LMGetKbdType() meaning
>> you are using as Estonia keyboard, or maybe
>> 78 for Devanagari keyboard in the Indian Language Kit, however
>> it's unlikely I or any other developer will want to code the
>> keyboard to ascii/macroman/unicode whatever translation tables in
>> the image.
> What we could do for trying to solve the problem Mike described, is
> to expose the functionality of ToUnicode or equivalent. E.g.,
> instead of having the VM doing all the mapping, allow the image
> request information about "what would the result of mapping this
> key combination be" and basically use the information we get out of
> the keyboard events (meta state and key code). That way, if you
> wanted to map Ctrl-Shift-1 to Ctrl-! you'd filter out the Ctrl key,
> map Shift-1 to "!" and are done.
> The issue here is that I've got no idea how hard it is to support
> this on other platforms...
> - Andreas
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
More information about the Vm-dev