Dispatch-Sending keyDown
DunbarX at aol.com
DunbarX at aol.com
Fri Oct 23 14:57:11 EDT 2009
Richard and Richmond:
The R word notwithstanding, I am working with the "send" and "dispatch"
commands as they pertain to the "keyDown" message. I have had no luck getting
these messages to the engine, however hard I try. I am trapping "keyDown" for
other purposes, but then want to pass it along so it can tell Rev to write
the char.
Richard Gaskin claims he can do so with "dispatch", though not with "send",
as in:
send "keydown" && tKeyJustPressed to this stack
dispatch "keydown" to this stack with tKeyJustPressed
There are workarounds. I just want to know why it fails.
Craig Newman
In a message dated 10/23/09 2:43:29 PM, richmondmathewson at gmail.com writes:
>
> on keyDown var
> put fld "fTEXT" & var into fld "fTEXT"
> end keyDown
>
> Bl**dy silly really as the cursor doesn't travel unless you do this:
>
> on keyDown var
> put fld "fTEXT" & var into fld "fTEXT"
> select after fld "fTEXT"
> end keyDown
>
> I would just type into the field.
>
> Objously I am missing something. . . . do tell . . . :)
>
More information about the use-livecode
mailing list