Author Topic: Remapping the Keyboard with KeyHelper  (Read 7772 times)

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Remapping the Keyboard with KeyHelper
« on: February 11, 2004, 12:54:01 am »
The KeyHelper program lets you customize the SL-C750 and SL-C760 and SL-C860 keyboards.  You can get it from:

http://yakty.s31.xrea.com/cgi-bin/misc/dl....1.1.2-1_arm.ipk


The accompanying Key Helper Keycode Configuration program lets you get the character codes and xml codes to modify the keyhelper.xml file to remap your keyboard:

http://yakty.s31.xrea.com/cgi-bin/misc/dl....0.3.0-1_arm.ipk


Main Keyhelper page:

http://yakty.s31.xrea.com/linuzau/keyhelper

You can use Babelfish to translate the main page from Japanese:

http://babelfish.altavista.com


You put the keyhelper.conf file in your /home/zaurus/Settings folder.  When you enter the terminal, you are already in the /home/zaurus folder, just above the Settings folder.  Here is my keyhelper.conf file:


Code: [Select]
[Global]

[Launch]

K = Applications/embeddedkonsole

M = Applications/textedit

N = Applications/netfront3

T = Applications/todo

V = theKompany.com/tkcVox_c700


The folder names correspond to the paths:

/home/QtPalmtop/apps/Applications
/home/QtPalmtop/apps/theKompany.com


You can hold down the Home key on the Zaurus keyboard and then a letter to launch an application associated with that letter.  For example, with the keyhelper.conf file above, you can press Home T to launch the ToDo application.

You also put a second file named keyhelper.xml in your /home/zaurus/Settings folder.  Here is mine, based on someone else\'s and then customized after using the KeyHelperConf program to copy the appropriate codes into the clipboard, then using vi to edit the keyhelper.xml file and inserting the clipboard contents by entering insert mode with the letter i and then clicking on the paste icon near the top of the terminal window:

Code: [Select]








  

      

  




  

      

  




  

  






  









  

  

    

  




  

      

      

  




  

      

      

  




  

    

  





  

      

      

  




  

      

      

      

  




  

      

      

      

  




  

      

      

      

  




  

      

      

  




  

      

  




  

      

      

      

  


  

      

      

      

  


  

      

      

      

  




  

      

      

  




  

      

      

  








  







  

      

  




  

      

  




  

      

  






Whenever you modify your keyhelper configuration files, run:

khctl reload

to reload the configuration files.  The KeyHelperConf program will stop responding if it is open when you reload the configuration files with the khctl program, so you will have to close the KeyHelperConf program.

zbones

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Remapping the Keyboard with KeyHelper
« Reply #1 on: February 11, 2004, 03:49:24 pm »
Thank you so much for drawing my attention to this neat program  

This is just what I have been looking for!

I have been trying to work out how to \"undo\" the fn 5 = euro default setting for the cacko rom, this undoes all the cacko keymaps and allows me to set my own.  It is also great to finally be able to make use out of the kanji keys.

Peter.
Zaurus cl760, cacko QT rom. Zaurus sl5500 with TKCrom 1.0.
512mb Kingston cf card, 256mb Sandisk sd card, Lexar 256mb sd card.
Bluemonkey bluetooth card <-> Sony Ericsson k700i for gprs.
Buffalo WLI-CF-S11G wifi card. Haicom 303 mmf gps cf/seral card.

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Remapping the Keyboard with KeyHelper
« Reply #2 on: February 11, 2004, 10:07:53 pm »
You\'re welcome.  I first became aware of KeyHelper when I was searching on a different topic and found a reference to the program on:

http://viz.aset.psu.edu/ga5in/SharpZaurus.html

There is some other interesting Zaurus-related information on that site.

2devnull

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://
Remapping the Keyboard with KeyHelper
« Reply #3 on: February 11, 2004, 11:20:26 pm »
can we put this in the How To or FAQ?

Regards,
2>/dev/null

SOLD ((((((SL-C860 (Cacko 1.22) | Socket Low Powered Wi-Fi | Sandisk 256 MB SD | Lexar 256 MB SD | Smart 64 MB SD | CF Camera CE-AG06 | Serial IO USB Cable | Tungsten T Stylus | Socket Bluetooth |)))))

holck

  • Newbie
  • *
  • Posts: 34
    • View Profile
Remapping the Keyboard with KeyHelper
« Reply #4 on: February 12, 2004, 04:03:48 am »
Quote
can we put this in the How To or FAQ?
That would be nice - including keyhelper.xml files for different languages - I have a good one for Danish. /Jesper
SL760, tkcROM, ASUS WiFi

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Remapping the Keyboard with KeyHelper
« Reply #5 on: February 14, 2004, 10:39:27 pm »
I\'ve settled on a new keyhelper.xml configuration which lets you use the Menu key to select which running application that you want to run.  Just press the Menu key repeatedly until the program that you want to switch to is highlighted, then press the OK button or the Enter key.  The OK button is easier, since it is closer to the Menu key.  I discovered that you can press Shift Menu to get the original Menu key functionality, which would open up the application\'s menu at the top of the screen.  The second Japanese key to the right of the Fn key is now used for launching an application by pressing the Japanese key and then a letter specified in the keyhelper.conf file.  The following file belongs in

/home/zaurus/Settings/keyhelper.xml

You have to run

khctl reload

after modifying or replacing the keyhelper.xml file.

Code: [Select]








  

      

  




  

  




  









  

  

    

  




  

      

      

  




  

      

      

  




  

    

  





  

      

      

  




  

      

      

      

  




  

      

      

      

  




  

      

      

      

  




  

      

      

      

  




  

      

      

  




  

      

  




  

      

      

      

  


  

      

      

      

  


  

      

      

      

  




  

      

      

  




  

      

      

  








  













  

  




  

      

  





.mau.

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • http://xmau.com/
Remapping the Keyboard with KeyHelper
« Reply #6 on: March 16, 2004, 06:21:03 am »
Excuse me for the maybe dumb question: where may I find the key names and codes?
I thought that code=\"20xx\" meant Fn-xx, where xx is the ordinal number of the key: from the examples, 2015 is Fn-o and 2016 is Fn-p, but Fn-q is 2014 !!
Ditto for the names: on Fn-I my C860/Cacko-1.20 does not show the sterling key, but something like _| . (Mapping is \"English\")
TIA, .mau.

(update: I found out these mappings:
code 2014 = Fn-q
code 2015 = Fn-o
code 2016 = Fn-e
code 2017 = Fn-a
code 2018 = Fn-s
code 2019 = Fn-n
code 201a = Fn-m
code 2022 = Fn-k

key cent = Fn-u
key yen = Fn-d
key sterling = Fn-i )
C860 + 128MB CF + 128MB SD; Cacko 1.20
Milano Italy - http://xmau.com/

fu-ga-zi

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://
Remapping the Keyboard with KeyHelper
« Reply #7 on: March 16, 2004, 11:23:01 am »
@qx773:

Thanks a lot for the hint to swap / and , but the version you gave does not work for me:

Quote
<!-- swap / and , -->  
   <define key=\"Comma\">  
      <map key=\"Slash\"/>  
      <map_modifier Shift=\"On\"/>  
      <map_unicode shift_unicode=\"/\"/>  
   </define>  
   <define key=\"Slash\">  
      <modifier Shift=\"On\"/>  
      <map key=\"Comma\"/>  
      <map_modifier Shift=\"Off\"/>  
   </define>  
   <define key=\"Comma\">  
      <modifier Shift=\"On\"/>  
      <map key=\"Comma\"/>  
      <map_modifier Shift=\"Off\"/>  
   </define>  

Only when I delete the third <define...>...</define> pair it does.

Regards

Peter

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Remapping the Keyboard with KeyHelper
« Reply #8 on: March 16, 2004, 08:42:28 pm »
I got that part from:

http://viz.aset.psu.edu/ga5in/SharpZaurus.html

I wondered why that third <define> was there, but it works for me, so I left it alone.

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Remapping the Keyboard with KeyHelper
« Reply #9 on: March 16, 2004, 08:50:34 pm »
The KeyHelperConf program will produce the names and codes that correspond to the keys that you press.  I do not know where you can find a list of all of the key codes.  Perhaps the source code will show the names.

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Remapping the Keyboard with KeyHelper
« Reply #10 on: March 17, 2004, 03:07:55 am »
There is a problem with KeyHelper on Cacko ROM - it conflicts with the input method. This is important for those who uses different keyboard layouts and swicthes between them.

To fix the problem, I\'ve merged the capabilites of the latest version of KeyHelper program (1.1.5) into the input method used in Cacko ROM. Download, unzip the file attached to this thread and copy it into /home/QtPalmtop/plugins/inputmethods replacing the existing link. Restart Qtopia.

You can now uninstall KetHelper - all that it supports is now handled by the input method plugin. You may want to manualy  copy the khctl script from the KeyHelper package to be able to send commands to it.

This new applet will be included in the next version of Cacko ROM.

Enjoy!

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Remapping the Keyboard with KeyHelper
« Reply #11 on: March 17, 2004, 03:29:34 am »
Quote
The KeyHelperConf program will produce the names and codes that correspond to the keys that you press.  I do not know where you can find a list of all of the key codes.  Perhaps the source code will show the names.

yes, the names are in the source code for the KeyHelper program.

.mau.

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • http://xmau.com/
Remapping the Keyboard with KeyHelper
« Reply #12 on: March 17, 2004, 06:35:34 am »
I installed the updated version of libcyrinput, but it seems that the comma key always sends a slash! Since I did not change keyhelper.xml, I wonder what happened.
C860 + 128MB CF + 128MB SD; Cacko 1.20
Milano Italy - http://xmau.com/

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Remapping the Keyboard with KeyHelper
« Reply #13 on: March 17, 2004, 07:14:51 am »
Quote
I installed the updated version of libcyrinput, but it seems that the comma key always sends a slash! Since I did not change keyhelper.xml, I wonder what happened.


Try to launch Settings/Keyboard, select english layout and clock OK

.mau.

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • http://xmau.com/
Remapping the Keyboard with KeyHelper
« Reply #14 on: March 17, 2004, 08:01:49 am »
I already selected it.
To be more precise, now I get comma holding the shift key, even if in keyhelper.xml I set up shift as a sticky key.
ciao, .mau.
C860 + 128MB CF + 128MB SD; Cacko 1.20
Milano Italy - http://xmau.com/