LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Emulate keyboard key "left" (https://www.linuxquestions.org/questions/linux-software-2/emulate-keyboard-key-left-325581/)

Ephracis 05-21-2005 02:22 AM

Emulate keyboard key "left"
 
I spilled some cola over my laptop and now, two months later, the left key is not working anymore. I was hoping that I could get around this by emulating this key with, for example, "ctrl+right_key" or "ctrl+page_up". I really need a clever solution to this until I get someone from Acer to look at it.

I tried to do this in .xmodmaprc
Code:

keysym home = home left
keysym right = right left

This should have made "shift+home" and "shift+right" to work as left, but it did not want to work. Does anyone have any ideas?

Regards.

Cyborg16 05-22-2005 08:59 AM

You could make an xkb keyboard map... it's not that hard and should work.
Basically, look in /etc/X11/xkb/symbols/pc for your keyboard map, and either modify the entry you normally use (easier) or create a new one (you'll probably have to add an entry to another file or two in the xkb dir (use a search)). There's some help files in the xkb dir. I'll leave you to experiment...


All times are GMT -5. The time now is 10:00 AM.