Re: Mapping keyboard 'special' keys in Linux



Mercury wrote:
"Dick Sutton" <rsutton43@xxxxxxxxxxx> wrote in message news:N92dnTqtt-OY_cjanZ2dnUVZ_t2inZ2d@xxxxxxxxxxxxxx
The label on my keyboard says it is a Model KB-0108. Of course, I'm
sure the keyboard is re-badged from another company. It would be easy
to figure out what the hex keycodes for these 3 keys are. I just
haven't a clue how to add them to the computers keymap.

Are you sure those 3 keys don't send multiple scancodes (i.e. simulate multiple key presses)? My keyboard has a ton of keys, and a few of them work this way. For example, I have a "Paste" button that sends CTRL-down, V-down, V-up, CTRL-up when pressed, simulating CTRL-V.

Anyway, take a look at this. It's a bit skimpy on detail, but it might be a good starting point:
http://ubuntuforums.org/showthread.php?t=172010


Thanks, Mercury, for the link. Yes, I'm sure that the 3 keys (Cut, Copy, & Paste) send a single scancode. They are 0xa5, oxa6, and oxa3 respectively. I got those from looking in /var/log/messages (the messages file also provided me with the 'e' equivalant i.e. e025, e026 and e023 respectively).

However, I can't seem to get these to work. I followed the directions in the link that you provided, but it left too much unsaid. For example, Step 5 says to go to the System > Preferences > Keyboard Shortcuts and do the mappings. Well, that's where I started out - There are no pre-defined Cut, Copy & Paste mappings to modify.

Dick

.



Relevant Pages

  • Re: Keyboard test page updated
    ... Keyboard handling is one of the hardest cross-browser issues. ... Looks good to me at this point, having tested numerous browsers ... Control or Meta keys). ... keypress events on keydown after sniffing out certain browsers (e.g. ...
    (comp.lang.javascript)
  • Linux problems with USB HID keyboards and patches
    ... Navigator USB connected keyboard. ... page 0x7, usage 0xe5, code 54 ... The mapping of HID keys to event keys and from event keys ...
    (Linux-Kernel)
  • Re: Great SWT Program
    ... issues of environment input options vs. individual application input ... One trivial example would be a 100-key keyboard where ... The number of keys and the force needed are orthogonal, ...
    (comp.lang.java.programmer)
  • Re: F lock key!
    ... > keyboard has power and then pressing the F2 key or if I want ... remapping of the function keys. ... That means to use those applications that use the ... function keys as intended I have to MANUALLY switch the F-Lock key on/off ...
    (microsoft.public.windowsxp.hardware)
  • Re: ot -keyboard woes
    ... This is leaning more towards either water trapped somewhere ... within the KB circuit board that's shorting out these three keys. ... holes punched in it under the keys, the bottom sheet has the other ... before with the keyboard and that approach worked fine then. ...
    (sci.space.history)