PocoHud3 icon indicating copy to clipboard operation
PocoHud3 copied to clipboard

Backspace key does not work on linux

Open hjri opened this issue 8 years ago • 1 comments

From my SPUC post:

I'm using BLT version of this mod with blt4l hook https://github.com/blt4linux/blt4l

Backspace key doesn't work at all - i am forced to use backtick (detailed info) in main menu, config is not available in-game, obviously.

Is there any way to configure which key is used for menu?

Zenyr asked what keycode for backspace is.

here's output of xev when i press backspace

KeyRelease event, serial 40, synthetic NO, window 0xb800001,
    root 0x1f4, subw 0x0, time 486362840, (-429,-233), root:(885,132),
    state 0x10, keycode 22 (keysym 0xff08, BackSpace), same_screen YES,
    XLookupString gives 1 bytes: (08) "
    XFilterEvent returns: False

showkey yields:

keycode  14 release

Nonethenless, trying to set "detailed view" key to backspace clears it.

hjri avatar Apr 17 '16 14:04 hjri

I worked around this issue by changing Hud3.lua:649 to Poco:Bind(self,'\\',function() which switches the key to backslash.

I also tried using a hex editor to input the raw XLookupString bytes of backspace, but to no avail. What also did not work was using the keycode 43 (as an int, not a string), which is the keycode for backslash.

Hope that helps someone and maybe sheds some light on the issue.

TheDevKing avatar Mar 18 '17 01:03 TheDevKing