I don't want to ignite a UI war but I don't want app's changing those keys (volume, CD eject and various Linux key chords to get a console or restart X) It doesn't seem like a Shoes priority to me. If you can find or make a cross platform hook into all the OS external event streams and rubyize it and shoe-itize it, neat, more power to you. It would be nice to know the wifi went down or I've been commanded to sleep now or the disk/share I was connected to was unmounted. I just don't see it as a priority for Shoes.
I thought Carbon was seriously and perhaps viciously deprecated for OS X, but I don't write Mac C/C++/Objective-C anymore, so what do I do know? On Fri, 2009-07-17 at 21:40 -0700, Devyn Cairns wrote: > I think they mean they want a hotkey that can be used say, when > firefox is in focus, but still direct it to the shoes app. > > On Fri, Jul 17, 2009 at 7:55 PM, Ehsanul Hoque<[email protected]> wrote: > > Well, what's wrong with using the keypress method within shoes? Look it up > > in the manual, it works as a global hotkey. Or am I missing the point? > > > >> Subject: global hotkey > >> From: [email protected] > >> To: [email protected] > >> Date: Fri, 17 Jul 2009 16:18:12 -0400 > >> > >> I'm trying to build a small (really small) application using shoes, > >> but I need to capture global hotkeys. My first approach was: > >> > >> * Create the base application using shoes, and build custom ruby > >> extensions for mac, linux, win that will create a method to register a > >> global hotkey. > >> > >> Since I'm a mac guy, I created the extension for mac, using Carbon > >> Events... it works, except I have to install an event loop, blocking > >> all other events from the app: definitely not what I want :-) > >> > >> What would you guys/gals do to install a cross-platform hotkey? I > >> could easily hack the shoes code to add a hotkey hook to the > >> Shoes::App class... but the ideal thing would be to have it in all > >> platforms... > >> > >> regards, > >> -- > >> Rolando Abarca M. > > > > ________________________________ > > Hotmail® has ever-growing storage! Don’t worry about storage limits. Check > > it out. > > >
