https://bugs.kde.org/show_bug.cgi?id=528561

            Bug ID: 528561
           Summary: keytab bindings are saved in order and loaded in order
                    causing unusual issues with bindings
    Classification: Applications
           Product: konsole
      Version First 26.08.3
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: keyboard
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
When managing profile keyboard bindings, such as Default (XFree 4), and adding
new bindings, they are active in-session at that time, but when closing and
re-opening, other similar bindings may override and squash these bindings due
to load order.

STEPS TO REPRODUCE
1. Create a profile, edit profile, and go into Keyboard, and Edit the default,
or create one based on that.
2. In the Test Area, press Super+Left, it will show you
Left-Shift+Ansi+AnyModifier.
3. Create Keybinding Left+Meta with the output "\E[1;4P"
4. In the Test Area, press Super+Left, this time it will show you Left+Meta
with it's proper output.
5. Save the setting. Close Konsole (or Yakuake), and re-open it. Go back into
the profile, Keyboard, and edit.
6. In the Test Area, press Super+Left, it will show you
Left-Shift+Ansi+AnyModifier.
7. Edit ~/.local/share/konsole/default.keytab or named keyboard map you created
in your test, find and move Left+Meta to the bottom of the file and save it.
8. Re-open konsole (or yakuake), and proceed back to the profile, keyboard,
mappings.
9. In Test Area, pressing Super+Left will show you the correct mapping this
time due to load order.

OBSERVED RESULT
Konsole, and Yakuake, saves the keytab file in alphabetical order and has no
concept of priority or specifivity, and allows other mappings in the keytab to
override based on load order. This can squash more specific key mappings that
have been setup.

EXPECTED RESULT
Creating a specific keymap is set, loaded and restored fully each and every
time after configuring it. If it's more specific than "AnyModifier", then treat
it with higher priority than simply load order.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 6.8.2
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0

ADDITIONAL INFORMATION
This primarily seems to be save/load order squashing, without consideration of
specificity/priority over another. AnyModifier basically auto-maps keys to
various combinations of Shift, Alt, Ctrl, or multiple combination of, while
mine, Left+Meta, Right+Meta, Up+Meta, and Down+Meta, as provided below,
literally were intentionally designed to step in as less-used keys
Alt+Shift+F1, Alt+Shift+F2, Ctrl+Shift+F11, and Ctrl+Shift+F12 (otherwise known
as the virtual range in F13-F64)

My keytab mappings below are what I specifically created in the profile editor
GUI:

key Down+Meta : "\E[24;6~"
key Right+Meta : "\E[1;4Q"
key Left+Meta : "\E[1;4P"
key Up+Meta : "\E[23;6~"

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to