optionKeyDown message broken

Craig Newman craig at starfirelighting.com
Thu Apr 21 13:04:46 EDT 2022


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 at 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



More information about the use-livecode mailing list