Linux [Alt Gr] jumps to Music Window: Wong keymapping? (Logitech K400+)
#1
Pressing the key [Alt Gr] always brings me to the Music Window, where I can select "Genres", "Artists", "Albums", etc.
I think this is new since v19.1 (or maybe v19.0) but I'm not sure. Maybe this unwanted behavior exists already longer.
I don't like this. It is very annoying any I cannot enter several characters, e.g. square brackets (which I need for my Track naming template).


I use a Logitech K400+.
I've checked my keyboard.xml and I don't find special settings for [Alt Gr] (or right [Alt]-key) but I have a mapping for the Musical note key ([♫], it is the key [F9] without [FN]).
Code:
<!-- Musical note key on Logitech K400: Music Window
("HandleKey: 0 (0xf200, obc-61697)") -->
<key id="61952">ActivateWindow(Music)</key>
The Musical note key is working fine.

The default-keymap is unchanged (and I don't see anything for [Alt Gr] or other relevant settings).


Then I've checked my debug log to see what happens at pressing the keys.
[♫]:
Code:
2021-05-13 22:53:20.338 T:5503 DEBUG <general>: Keyboard: scancode: 0xb3, sym: 0x269025153, unicode: 0x0000, modifier: 0x0
2021-05-13 22:53:20.338 T:5503 DEBUG <general>: GetActionCode: Trying Hardy keycode for 0xf200
2021-05-13 22:53:20.338 T:5503 DEBUG <general>: Skipped 1 duplicate messages..
2021-05-13 22:53:20.338 T:5503 DEBUG <general>: HandleKey: 0 (0xf200, obc-61697) pressed, action is ActivateWindow(Music)
2021-05-13 22:53:20.338 T:5503 DEBUG <general>: Activating window ID: 10502

[Alt Gr]:
Code:
2021-05-13 22:54:31.023 T:5503 DEBUG <general>: Keyboard: scancode: 0x6c, sym: 0x65027, unicode: 0x0000, modifier: 0x0
2021-05-13 22:54:31.023 T:5503 DEBUG <general>: GetActionCode: Trying Hardy keycode for 0xf200
2021-05-13 22:54:31.023 T:5503 DEBUG <general>: Skipped 1 duplicate messages..
2021-05-13 22:54:31.023 T:5503 DEBUG <general>: HandleKey: 0 (0xf200, obc-61697) pressed, action is ActivateWindow(Music)
2021-05-13 22:54:31.023 T:5503 DEBUG <general>: Activating window ID: 10502


I see, it is a different scancode but it ends in the same action. I don't know why this happens.
I didn't change anything on my system configuration or Kodi settings. I've just applied available updates.
Is my keymapping wrong? Or is there an issue in a different component?
How can I do it only for the key [♫], without changes for [Alt Gr]?

List of keynames doesn't help me. I don't see "CApplication::OnKey" in my log but I see messaged like
Code:
2021-05-14 00:09:47.415 T:6515 DEBUG <general>: Keyboard: scancode: 0xb3, sym: 0x269025153, unicode: 0x0000, modifier: 0x0
2021-05-14 00:09:47.415 T:6515 DEBUG <general>: GetActionCode: Trying Hardy keycode for 0xf200
2021-05-14 00:09:47.415 T:6515 DEBUG <general>: Skipped 2 duplicate messages..

2021-05-14 00:09:47.415 T:6515 DEBUG <general>: HandleKey: 0 (0xf200, obc-61697) pressed, action is
2021-05-14 00:09:47.555 T:6515 DEBUG <general>: Keyboard: scancode: 0xb3, sym: 0x269025153, unicode: 0x0000, modifier: 0x0


Without my mapping for the key [♫] in my keyboard.xml the key [Alt Gr] is unassigned, i.e. no direct action is assigned and it is working like expected.
Without it also my [♫]-key is unassigned but it would be fine to have it like before (but without changes for [Alt Gr]).


I also checked my keyboard settings in Xfce but I don't see defined Application Shortcuts for "Level3 Shift" (the shortcut name for [Alt Gr]) or for "Tools" (the shortcut name for [♫]). Since there is no K400+ in the keyboard layout I use the Generic 105 keys layout (default) and it is working fine.


P.S.: Linux Mint 20.1 Xfce, Kodi v19.1, Estuary
Reply
#2
I tried the Keymap Editor now, created a new mapping for the [♫]-key and I got the same result:
Code:
cat ~/.kodi/userdata/keymaps/gen.xml
<keymap><global><keyboard><key id="61952">activatewindow(music)</key></keyboard></global></keymap>
It is the same mapping, also with the same consequences: Although [♫] is working fine but also [Alt Gr] is calling the Music window.
Something is going wrong here ...
Reply

Logout Mark Read Team Forum Stats Members Help
[Alt Gr] jumps to Music Window: Wong keymapping? (Logitech K400+)0