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
|