rawKeyDown and Unicode
Sarah Reichelt
sarah.reichelt at gmail.com
Mon Sep 21 16:27:53 EDT 2009
I would suggest trying it without passing the rawKeyDown message if
you have already handled it i.e. if RAWK = 0
Cheers,
Sarah
Sent from my iPhone
On 21/09/2009, at 11:17 PM, Richmond Mathewson <richmondmathewson at gmail.com
> wrote:
> 'Tis michty queer:
>
> This works:
>
> on mouseUp
> set the useUnicode to true
> set the unicodeText of fld "BLURB" to the unicodeText of fld "BLURB"
> & numToChar(2000)
> select after fld "BLURB"
> end mouseUp
>
> this appends the unicode char 2000 to my textField
>
> BUT this doesn't:
>
> on rawKeyDown RAWK
> set the useUnicode to true
> if RAWK = 0 then
> set the useUnicode to true
> set the unicodeText of fld "BLURB" to the unicodeText of fld
> "BLURB" & numToChar(2000)
> select after fld "BLURB"
> end if
> pass rawKeyDown
> end rawKeyDown
>
> this appends the ascii equivalent (i.e. rem 2000)
>
> a richt scunner!
>
> Any helpful suggestions welcomed with open arms . . . :)
>
> sincerely, Richmond.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list