Paul Lutus wrote:
> Kuang Dong wrote:
> 
>> He
>> Hel
>> Hell
>> Hello
>> 
>> When I select "ello",and input "i"
>> output:
>> H
>> Hi
>> 
>> How can I ignore the event outputs "H"?
> 
> You have to choose which text events you want to act on. You are 
> presently
> acting on each entered character. I *think* you want to act only on 
> enter
> being pressed.

Acutally,I wanted to do something like google suggest
(http://www.google.com/webhp?complete=1)

When I select "ello" of "Hello" and press "i",two "text change event" 
raised,one is Hello->H and the other is H->Hi.Now I have to ignore the 
first event(do nothing),and give suggestion by the last word.I have no 
idea.

-- 
Posted via http://www.ruby-forum.com/.