View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#13
Aha! A clue! From here:

When you boot a device without pressing any button at a physical keyboard, X will not map the keycodes and modifiers. Without the modifiers the virtual keyboard matchbox-keyboard breaks when using 'Shift', 'Alt' or 'Caps'.

This patch adds a session file that maps the keycodes and modifiers with 'xmodmap' when loading X, fixing the matchbox-keyboard problem.
The suggested fix looks like the addition of the following codes to our .Xmodmap file:

Code:
add shift   = Shift_L Shift_R
add lock    = Caps_Lock
add control = Control_L Control_R
add mod1    = Alt_L
add mod2    = Num_Lock
add mod4    = Mode_switch
EDIT:
I saved this file as /home/user/.Xmodmap-keymap and added "xmodmap /home/user/.Xmodmap-keymap" as the first line of my Debian /etc/xdg/lxsession/LXDE/autostart file, and hey presto, matchbox-keyboard works flawlessly.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2008-09-14 at 18:12.
 

The Following 2 Users Say Thank You to qole For This Useful Post: