Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esc key not working #55

Open
voidplayer opened this issue Feb 26, 2014 · 4 comments
Open

esc key not working #55

voidplayer opened this issue Feb 26, 2014 · 4 comments
Assignees
Labels

Comments

@voidplayer
Copy link

I use this to swap esc and caps lock keys:

setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl -option caps:swapescape

some (non-source) games recognize the swapped key. Others dont but respect the old esc key.

in Portal 2 neither work. (neither esc nor swapped caps lock key). I have to alt + tab to bring the steam layout and after that caps. lock works to leave the layout (as I expect it to work)

Its pretty similar to other source games. Either respect my swapped key or dont... but make one of them work (preferably, respect my swapped key) :)

Thanks

@DrMcCoy
Copy link

DrMcCoy commented Feb 26, 2014

Likewise, the game doesn't recognize my German keyboard layout.

Pressing a key in the key bindings options turns up the character that would be on the key if the keyboard were in US layout (i.e. ] instead of + for the key two places to the right of the p key).

(SDL_Scancode vs. SDL_Keycode issue?)

@davidw-valve davidw-valve self-assigned this Feb 26, 2014
@ddevault
Copy link

ddevault commented Mar 1, 2014

Speaking up to add to the list of affected users. xmodmap foo where foo is this file: https://github.com/SirCmpwn/dotfiles/blob/master/scripts/keybindings

@9ary
Copy link

9ary commented Aug 26, 2015

I worked around this myself by remapping the keys using udev itself. Here's my hwdb config:

evdev:input:*
 KEYBOARD_KEY_70039=esc
 KEYBOARD_KEY_70029=capslock

This should work in pretty much everything as it changes the keycodes reported by the kernel driver.
I also own a keyboard which lets me remap keys in firmware, which makes it work at an even lower level but it shouldn't be more reliable than this solution.

@voidplayer
Copy link
Author

@Streetwalrus genious!

btw, for some reason evdev:input:* didnt worked for me, so i used this instead

keyboard:usb:*
 KEYBOARD_KEY_70039=esc
 KEYBOARD_KEY_70029=capslock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants