"Type" issue?

Alex Tweedly alex at tweedly.net
Mon May 9 15:49:00 EDT 2005


J. Landman Gay wrote:

>
> I'm not convinced this is really a bug. The "type" command is meant to 
> simulate actual keyboard events, and if a script issues a "type" 
> command, it needs to behave exactly as though the user were typing. 
> So, I'd expect it to send all related messages.
>
> It is very unusual to send a "type" command within a keydown handler; 
> the usual approach would be to "put" the text into/after the field. 
> Simulating a typing event inside a keydown seems to me to be a 
> developer issue, just as a repeat loop with no exit command would be.
>
I think you're right. I hadn't seen or used 'type' before, and had 
somehow got it into my mind that it should send only one of rawKeyDown 
and keyDown - but I guess they both have to happen to accurately 
simulate typing.

-- 
Alex Tweedly       http://www.tweedly.net



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.6 - Release Date: 06/05/2005



More information about the use-livecode mailing list