Assign Global Shortcuts to Titanium Desktop Apps
Hi,
How do you assign some global shortcuts to your Titanium Desktop Apps?
For example I would like on a shortcut at any time be able to show my app main window. Is it possible to do this right now with the current SDK?
Thank you!
1 Answer
-
You can detect the press of a key combination in javascript, there are plenty of plugins for frameworks that make this easy. (ex. jQuery).
To show the app's main window you can use
win = Titanium.UI.getMainWindow(); win.focus();