#62 closed defect (fixed)
AltGr not working with "Keyboard synchronized" = off
Reported by: | pmarek | Owned by: | Antoine Martin |
---|---|---|---|
Priority: | major | Milestone: | 0.0.7.x |
Component: | android | Version: | 0.0.7.34 |
Keywords: | Cc: |
Description (last modified by )
With the current xpra 0.0.7.32 and "Keyboard synchronized" unchecked the key bindings using AltGr
don't work anymore.
Here's xev
with k-s checked:
KeyPress event, serial 30, synthetic NO, window 0xa00001, root 0xfd, subw 0x0, time 2809973731, (409,199), root:(413,222), state 0x0, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES, XKeysymToKeycode returns keycode: 92 XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 30, synthetic NO, window 0xa00001, root 0xfd, subw 0x0, time 2809974060, (409,199), root:(413,222), state 0x80, keycode 53 (keysym 0xab, guillemotleft), same_screen YES, XLookupString gives 2 bytes: (c2 ab) "«" XmbLookupString gives 2 bytes: (c2 ab) "«" XFilterEvent returns: False KeyRelease event, serial 30, synthetic NO, window 0xa00001, root 0xfd, subw 0x0, time 2809974062, (409,199), root:(413,222), state 0x80, keycode 53 (keysym 0xab, guillemotleft), same_screen YES, XLookupString gives 2 bytes: (c2 ab) "«" XFilterEvent returns: False
with k-s unchecked:
KeyPress event, serial 44, synthetic NO, window 0xa00001, root 0xfd, subw 0x0, time 2810010702, (238,217), root:(246,263), state 0x0, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES, XKeysymToKeycode returns keycode: 92 XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 44, synthetic NO, window 0xa00001, root 0xfd, subw 0x0, time 2810010702, (238,217), root:(246,263), state 0x80, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES, XKeysymToKeycode returns keycode: 92 XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 44, synthetic NO, window 0xa00001, root 0xfd, subw 0x0, time 2810011346, (238,217), root:(246,263), state 0x0, keycode 53 (keysym 0x78, x), same_screen YES, XLookupString gives 1 bytes: (78) "x" XmbLookupString gives 1 bytes: (78) "x" XFilterEvent returns: False KeyRelease event, serial 44, synthetic NO, window 0xa00001, root 0xfd, subw 0x0, time 2810011346, (238,217), root:(246,263), state 0x0, keycode 53 (keysym 0x78, x), same_screen YES, XLookupString gives 1 bytes: (78) "x" XFilterEvent returns: False
Attachments (6)
Change History (17)
Changed 10 years ago by
Attachment: | dat.tar.gz added |
---|
comment:1 Changed 10 years ago by
Changed 10 years ago by
Attachment: | host.tar.bz2 added |
---|
comment:2 Changed 10 years ago by
The patch above works, but this is not the correct solution: we now have modifier mappings available (at least in xposix), so we should generate the modifier map from those.
Changed 10 years ago by
Attachment: | xpra-xkbmod2.patch added |
---|
much better solution which detects "nuisance" keys
comment:3 Changed 10 years ago by
r394 (see the long changelog message for details) contains the proper fix for this, also ensures that capslock and numlock are properly synchronized.
Please confirm that this works for you and that this does not cause regressions when connecting to/from older versions.
comment:4 Changed 10 years ago by
Hmmm, at least connecting _to_ an "old" version (latest package, ie. 0.0.7.32-1) with r395 makes AltGr
_dead_ - neither with nor without keyboard synchronized it does anything.
comment:5 Changed 10 years ago by
Let's make this more interesting by introducing some new factors into the equation:
- win32 sends us a Num_Lock key press, but it is never reported as a modifier
- win32: caps now needs to be added to the list of keys we report
- osx: not sure about the numlock key, seems to come up as
Escape
keyval=65307
- osx also tries to be too clever and only sends one event for the capslock key: key-up or key-down to tell us if caps is on, rather than the raw key events we want...
comment:6 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Owner: | changed from Antoine Martin to Antoine Martin |
Status: | new → accepted |
Changed 10 years ago by
Attachment: | gtk_view_keyboard.py added |
---|
useful tool for seeing what the keyboard is doing
Changed 10 years ago by
Attachment: | xpra-xkbmod3.patch added |
---|
much better patch which implements raw keycodes for all platforms
comment:7 Changed 10 years ago by
r417 should work and supports all platforms I tested: Ubuntu 10.04, Ubuntu 11.10, Fedora, Windows XP, Mac OS X, OpenBSD...
Both with and without "--no-keyboard-sync
"
Please let me know if I can close this ticket.
comment:8 Changed 10 years ago by
Testing 0.7.33:
With "keyboard synchronized" = unchecked the key repeat bug does no longer happen; with that checked I see the unwanted repetitions.
Thanks a lot!
comment:9 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:10 Changed 10 years ago by
Milestone: | current → 0.0.7.x |
---|---|
Version: | → 0.0.7.34 |
comment:11 Changed 17 months ago by
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/62
I'm pressing AltGR+x - see the above key numbers.