Author Topic: Keyboard Accelerators For Applications  (Read 5004 times)

rafm

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Keyboard Accelerators For Applications
« on: April 13, 2005, 01:27:40 pm »
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.
SL-C1000 w/ Cacko ROM 1.23

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Keyboard Accelerators For Applications
« Reply #1 on: April 13, 2005, 01:41:28 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.
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

rafm

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Keyboard Accelerators For Applications
« Reply #2 on: April 14, 2005, 04:45:48 am »
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74987\"][{POST_SNAPBACK}][/a][/div]

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
SL-C1000 w/ Cacko ROM 1.23

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Keyboard Accelerators For Applications
« Reply #3 on: April 14, 2005, 05:26:22 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.
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

rafm

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Keyboard Accelerators For Applications
« Reply #4 on: April 14, 2005, 06:08:18 am »
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75097\"][{POST_SNAPBACK}][/a][/div]

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.
SL-C1000 w/ Cacko ROM 1.23

TimW

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Keyboard Accelerators For Applications
« Reply #5 on: April 14, 2005, 06:16:06 am »
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.)
« Last Edit: April 14, 2005, 06:16:35 am by TimW »