Joel VanderWerf wrote:
> Try something like this:
> 
>    [SEL_COMMAND, SEL_KEYPRESS].each do |sel|
>      @button_next.connect(sel) {...}
>    end

Thanks Joel. They work very well.

Li

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