From: William Smargiassi Date: 2006-07-29T21:39:26+09:00 Subject: Re: Ruby::Tk on OS X event binding hint I would think you never want to bind Command- and Command-Shift- to the same function. The two key shortcuts should do something different (but probably related) like Command-S is save, but Command- Shift-S is save-as. bill On Jul 28, 2006, at 10:42 , Morton Goldberg wrote: > On Jul 28, 2006, at 8:50 AM, Matthew Smillie wrote: > >> Just as an interface technicality, command-shift-q is a global >> shortcut for logging out, not for quitting an application. > > I've done the testing that I should have done before my first post > on this thread, and just as another technicality, a ruby > application, not the system, gets the command-shift-q event when > the app's window is active, so inside a ruby app, Cmnd+Shift+q > _will_ work as a quit command with the binding > > Tk.root.bind('Command-Q') {exit} > > But that doesn't make it a good idea; it would be poor design > practice to use such a binding. > > Regards, Morton > > > >