Bug 6647 - Xorg's X Keyboard Extension key remaps with altgr + <letter> don't work
Status: NEW
Alias: None
Product: Openbox
Classification: Unclassified
Component: general
Version: 3.6
Hardware: PC Linux
: P3 normal
Assignee: Dana Jansens
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2022-09-27 20:52 EDT by mikl
Modified: 2022-09-27 21:00:46 EDT
1 user (show)

See Also:



Description mikl 2022-09-27 20:52:10 EDT
-- Overview --

Xorg's X Keyboard Extension layout with altgr + <letter> remap for placing arrow keys or mouse keys in the alphabet part of the keyboard don't work.

-- How to reproduce --

Use the X Keyboard Extension to create a custom keyboard layout that remaps altgr + k to Down key. Steps below.

1) Create the file /usr/share/X11/xkb/symbols/es-custom with the following content:

default partial alphanumeric_keys
xkb_symbols "basic" {
    name[Group1]="Spanish Custom";
    include "es(basic)"
    key <AC08> { [ k, K, Down, Down ] };
};

2) Add the next item to /usr/share/X11/xkb/symbols/evdev.xml file:

      ...
      <configItem>
        <name>es-custom</name>
        <shortDescription>es-custom</shortDescription>
        <description>Spanish Custom</description>
        <countryList>
          <iso3166Id>ES</iso3166Id>
        </countryList>
        <languageList>
          <iso639Id>spa</iso639Id>
        </languageList>
      </configItem>
      ...

3) Select the layout:

sudo localectl set-x11-keymap es-custom pc104

reboot

-- Actual results --

When opening the Openbox menu and trying to navigate the menu items with remapped altgr + k (down), nothing happens. When trying the altgr + k in other programs such as text editor, terminal and browser, a next element is targeted.

-- Expected results --

When opening the Openbox menu and pressing altgr + k, the next item from the menu is highlighted (as it does when pressing original Down key).

-- Build Date & Hardware --

2021-09-19 04:56 UTC on Arch Linux (kernel version 5.19.7-arch1-1)

So far I have had this problem in different Arch Linux installations in two notebooks (intel and AMD) and a desktop PC (AMD) since I started using Arch Linux with Openbox more than two years ago.

-- Additional Builds and Platforms --

Don't know.

-- Additional Information --

Arch Linux forums' topic about the issue:

https://bbs.archlinux.org/viewtopic.php?id=278502