Help - Search - Members - Calendar
Full Version: Keyboard Accelerators For Applications
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Qt/Qtopia
rafm
I can not find a good and portable way to implement keyboard accelerators, which could be used to start some actions from keyboard rather than menu or tool bar.

On SL5500 it is possible to use FN+Shift combination, which is not used to enter any characters. However when the same application runs on Cx00, the accelerators won't work - Cx00 uses different keyboard mapping. Besides, FN and SHIFT are located quite far from each other, so holding them together is not so easy. I really miss some F1-10 keys, probably emulated by CTRL+something combination, which would work the same way on all Zaurus models.
omega
there is a way of doing it directly from a file afaik. Eg. the zaurus remote control "keys" call specific actions, i.e. xmms ... look for that file and you should be able to add what you like.
rafm
QUOTE(omega @ Apr 13 2005, 06:41 PM)
there is a way of doing it directly from a file afaik. Eg. the zaurus remote control "keys" call specific actions, i.e. xmms ... look for that file and you should be able to add what you like.
*


I am not sure if I understand you right. Which are 'the zaurus remote control "keys"'?

What I would like to see is a several key codes reserved only for applications, which would not be used by either Qtopia/Opie or for entering characters. (Being an emacs user I am not so found of stylus-only applications smile.gif
omega
Hey,

the zaurus music remote control is setup as several keycodes. I have edited these in the past so that they can operate what I like... This is under pdaxrom... There is a config file somewhere that maps all the keys... In it you can define that a particular keycode launches an application.
rafm
QUOTE(omega @ Apr 14 2005, 10:26 AM)
Hey,

the zaurus music remote control is setup as several keycodes. I have edited these in the past so that they can operate what I like... This is under pdaxrom...  There is a config file somewhere that maps all the keys... In it you can define that a particular keycode launches an application.
*


I don't want to start an application with the keyboard. I would like to use some keyboard combinations in my own application. But all keyboard codes seem to be either already used or not portable across QT based ROMs and different Zaurus models.
TimW
I had this problem in opie-reader. In the end I just decided to let users map their own buttons by setting up a dialog with a list of mappable actions and mapping which ever key is pressed to the currently selected function.

Let me know if you want to try this and I'll talk you through the code.

(BTW, could you add a keepRunning call in the handler for qcop messages in zbedic - that way it'll stay open after being called from (eg) opie-reader.)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.