Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Keyboard up event and WebKit Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keyboard up event and WebKit Framework



I use an "invisble" text field because it is sized to 1x1 pixel to
catch the keys. Assume you have a label field named "disp" and text
field with a keyboard up handler.

At least the codes are valid for a German Mac, not sure about an
US-keyboard.

on keyboard up theObject event theEvent
set kc to key code of theEvent
if kc is 123 then
set contents of text field "disp" of window 1 to "left arrow"
else if kc is 124 then
set contents of text field "disp" of window 1 to "right arrow"
else if kc is 125 then
set contents of text field "disp" of window 1 to "down arrow"
else if kc is 126 then
set contents of text field "disp" of window 1 to "up arrow"
else
set contents of text field "disp" of window 1 to "code " & kc
end if
end keyboard up


cu
Peter

Am Sonntag, 27.07.03, um 18:43 Uhr (Europe/Berlin) schrieb klaus umland:

> I just tried to have keyboard up events treated in an app which uses
> the
> WebKit framework. Its not launching anymore. Its exiting immediately
> with:
>
> XYZ has exited due to signal 11 (SIGSEGV).
>
> Could anybody confirm that ?
> _______________________________________________
> applescript-studio mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-studio
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.

References: 
 >Keyboard up event and WebKit Framework (From: klaus umland <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.