From: Joel VanderWerf Date: 2007-01-16T05:15:14+09:00 Subject: Re: keystrokes detection for non-control, meta key teeshift wrote: > I have tried > > @canvas.bind('k', proc{|e| }) > @canvas.bind('KeyPress-k', proc{|e| }) > @canvas.bind('Key-k', proc{|e| }) > > well... none of them work. Try root.bind("Key-k") {...} IIRC, the reason is that key events are sent to the top level window unless you have focused on a subwindow. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407