Have not played with your handler, but why not just:

on rawKeyDown tKey

if the optionkey is down then answer numToChar(tkey)

end rawKeyDown


Craig

> On Apr 21, 2022, at 11:55 AM, Paul Dupuis via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> on optionKeyDown pKeyName
>   if platform() = "MacOS" then
>     put numToChar(charToNum(pKeyName)-128) into tKey1 -- original sample from 
> Dictionary
>     put numToCodePoint(codepointToNum(pKeyName)-128) into tKey2 -- trying 
> using non-deprecated functions
>     answer pKeyName,tKey1,tKey2
>   else -- windows
>     answer pKeyName
>   end if
> end optionKeyDown

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to