Jump to content

Hello! 👋

These forums are now archived (read only).

Join us on Discord.

Manual key code mapping - left alt vs right alt.


Recommended Posts

Hi, I'm facing problem when working in the config:

Host: Ubuntu -> Client: MacOS

In config file I have the following entry:

MacBook-Pro.lan:
        altgr = alt

I need to print letter "ł" or "Ł" on the client machine.

Using left alt it's ok, but using right alt it's wrong.

From debug for left alt (the correct one),

Push left alt down:

[2020-10-07T10:31:42] DEBUG2: mapping state: 16
[2020-10-07T10:31:42] DEBUG2: |= modifier: 4
[2020-10-07T10:31:42] DEBUG1: new mask: 0x2000
[2020-10-07T10:31:42] DEBUG1: event: KeyPress code=64, state=0x0010
[2020-10-07T10:31:42] DEBUG2: mapping state: 16
[2020-10-07T10:31:42] DEBUG2: |= modifier: 4
[2020-10-07T10:31:42] DEBUG2: mapped code=64 to keysym=0xffe9
[2020-10-07T10:31:42] DEBUG2: mapped keysym=0xffe9 to keyID=61417
[2020-10-07T10:31:42] DEBUG1: onKeyDown id=61417 mask=0x2000 button=0x0040
[2020-10-07T10:31:42] DEBUG1: send key down to "MacBook-Pro.lan" id=61417, mask=0x2000, button=0x0040

Push l during left alt is down:

[2020-10-07T10:33:40] DEBUG2: mapping state: 24
[2020-10-07T10:33:40] DEBUG2: |= modifier: 3
[2020-10-07T10:33:40] DEBUG2: |= modifier: 4
[2020-10-07T10:33:40] DEBUG1: new mask: 0x2004
[2020-10-07T10:33:40] DEBUG1: event: KeyPress code=46, state=0x0018
[2020-10-07T10:33:40] DEBUG2: mapping state: 24
[2020-10-07T10:33:40] DEBUG2: |= modifier: 3
[2020-10-07T10:33:40] DEBUG2: |= modifier: 4
[2020-10-07T10:33:40] DEBUG2: mapped code=46 to keysym=0x006c
[2020-10-07T10:33:40] DEBUG2: mapped keysym=0x006c to keyID=108
[2020-10-07T10:33:40] DEBUG1: onKeyDown id=108 mask=0x2004 button=0x002e
[2020-10-07T10:33:40] DEBUG1: send key down to "MacBook-Pro.lan" id=108, mask=0x2004, button=0x002e

Push right alt (incorrect letter):

[2020-10-07T10:34:56] DEBUG2: mapping state: 16
[2020-10-07T10:34:56] DEBUG2: |= modifier: 4
[2020-10-07T10:34:56] DEBUG1: new mask: 0x2000
[2020-10-07T10:34:56] DEBUG1: event: KeyPress code=108, state=0x0010
[2020-10-07T10:34:56] DEBUG2: mapping state: 16
[2020-10-07T10:34:56] DEBUG2: |= modifier: 4
[2020-10-07T10:34:56] DEBUG2: mapped code=108 to keysym=0xfe03
[2020-10-07T10:34:56] DEBUG2: mapped keysym=0xfe03 to keyID=61310
[2020-10-07T10:34:56] DEBUG2: writef(CALV)
[2020-10-07T10:34:56] DEBUG2: wrote 4 bytes
[2020-10-07T10:34:56] DEBUG2: writing secure socket: 0x56021a787f80
[2020-10-07T10:34:56] DEBUG1: onKeyDown id=61310 mask=0x2000 button=0x006c
[2020-10-07T10:34:56] DEBUG1: send key down to "MacBook-Pro.lan" id=61310, mask=0x2000, button=0x006c

Push l during right alt is down (incorrect letter):

[2020-10-07T10:37:43] DEBUG2: mapping state: 144
[2020-10-07T10:37:43] DEBUG2: |= modifier: 4
[2020-10-07T10:37:43] DEBUG2: |= modifier: 7
[2020-10-07T10:37:43] DEBUG1: new mask: 0x2020
[2020-10-07T10:37:43] DEBUG1: event: KeyPress code=46, state=0x0090
[2020-10-07T10:37:43] DEBUG2: mapping state: 144
[2020-10-07T10:37:43] DEBUG2: |= modifier: 4
[2020-10-07T10:37:43] DEBUG2: |= modifier: 7
[2020-10-07T10:37:43] DEBUG2: mapped code=46 to keysym=0x01b3
[2020-10-07T10:37:43] DEBUG2: mapped keysym=0x01b3 to keyID=322
[2020-10-07T10:37:43] DEBUG1: onKeyDown id=322 mask=0x2020 button=0x002e
[2020-10-07T10:37:43] DEBUG1: send key down to "MacBook-Pro.lan" id=322, mask=0x2020, button=0x002e

All I need is to remap right alt to send same thing as left alt.

Is there any way to use mapping key codes on host to send specific button to client like:

MacBook-Pro.lan:
        \u0108 = \u0040

 

 

Link to post
Share on other sites
  • 4 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...