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. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009
