Re: [Fxruby-users] Spoke too soon...
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@kn...> - 2004-03-12 14:01:51
|
On Mar 12, 2004, at 4:09 AM, Hal Fulton wrote: > The escape is not working properly either. It's intercepting all > keystrokes and throwing them away. > > boxtext.connect(SEL_KEYPRESS) do |sender, sel, event| > if event.code == KEY_Escape > sender.killFocus > end > end > > How do I pass the non-Esc keys back into the FXText object? Try this instead: boxtest.connect(SEL_KEYPRESS) do |sender, sel, event| if event.code == KEY_Escape sender.killFocus else false # i.e. signal that we didn't handle this message end end Hope this helps, Lyle |