Sometimes, when I use synergy between my machines when one is using full-screen VirtualBox guest I get stuck with some weird key modifiers turned on. If they exist on my keyboard (like Shift_L) I can just tap it and their status is reset and I can continue typing in small letters. But some of them are not mapped to my keyboard at all (like ISO_Level3_Shift), so I have no means of turning them off at all!
How to reset them? Right now, all I can do is to reboot the computer, but it's rather embarrassing solution.
All I want is some program that can artificially "tap" all possible keyboard modifiers, so their status would be reset. Can it be done?
I use Mint 14 (a clone of Ubuntu 12.10 Quantal).
xdotool keyup 204
. – Adam Spiers May 07 '15 at 00:13DISAPLAY=:1 xmodmap -pk | grep -iP 'alt|meta|super|hyper'
. You'll need to change the display number to your broken VNC display number. – srking Nov 18 '15 at 22:17DISPLAY=:1
in the above comment. – Adam Spiers Nov 19 '15 at 09:47xdotool
supports a--clearmodifiers
option forkey
/keydown
/keyup
– maybe it didn't when this answer was written? I expect thatxdotool keyup --clearmodifiers space
would work. (xdotool keyup
requires a key to be specified; “space” is arbitrary.) – Rory O'Kane May 18 '17 at 17:30