Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I often had trouble with Ctrl and Shift modifiers while playing games (maybe this is gnome specific). For example if I press and hold Ctrl to crouch and I press 3 to select some gun while crouching I get in game menu (which is triggered by Esc).

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Remove bindings (keys will still work in game)

xmodmap -e 'remove Control = Control_L'
xmodmap -e 'remove shift = Shift_L'

add bindings back again after you are done playing game

xmodmap -e 'add Control = Control_L'
xmodmap -e 'add shift = Shift_L'
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.