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

            Bug ID: 516809
           Summary: Default Ctrl+Shift+SymbolKey conflicts with
                    Ctrl+SymbolKey's Alternative Symbol
    Classification: Applications
           Product: konsole
      Version First 25.12.2
       Reported In:
          Platform: CachyOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: keyboard
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
Some of the default keyboard shortcuts are set up as Ctrl+Shift+SomeKey,
however, when you input a new keybinding, the Shift is removed when that key
has an alternate (like, the backslash-pipe key). i.e., when you enter
Ctrl+Shift+] a a new keybinding, it gets saved as Ctrl+}, which is the
alternate key.

This causes the two effectively identical keybindings to be settable, without
throwing an error, but results in a "The key sequence 'Ctrl+|' is ambiguous.
Use 'Configure Keyboard Shortcuts' from the 'Settings' menu to solve the
ambiguity. No action will be triggered." error popup to appear.

I noticed this first when setting the `Ctrl+Shift+]` keybinding (which is saved
as `Ctrl+}`) to split the terminal Top+Bottom. However, by default,
`Ctrl+Shift+]` is assigned to `Expand View`, which makes split terminals
larger... this resulted in the bug only triggering when trying to split the
terminal Top+Bottom _twice_, since `Expand View` is only possible when the
terminal is already split. (Perhaps this will give you some clues as to which
layer of the logic the issue lives in-- if it's not just a matter of changing
the Default, preventing the user from assigning the same shortcut twice).

It's also possible that there is some involvement with the keyboards of
different countries having different layouts, or just some sort of input device
that doesn't have an alternate symbol for such a key. So, it is likely possible
that someone out there needs to have access to both a Ctrl+Shift+] and a Ctrl+}
keybinding, and assigning both of them doesn't cause any errors.

Anyway, sorry for the length, but hopefully something in there helps in
discovering the root cause, and deciding on the right fix :)

STEPS TO REPRODUCE
1. Open the Keyboard Shortcuts settings window
2. On a US keyboard, set an extra shortcut for "Split View Left/Right" via
Typing Ctrl + Shift + \, which gets saved as Ctrl + |
3. Press Ctrl + Shift + \ twice in a row.

OBSERVED RESULT
Keyboard shortcut saves without an error, but when trying to activate the
shortcut the second time in a row, it fails, and an error popup is shown with
the error message: "The key sequence 'Ctrl+|' is ambiguous. Use 'Configure
Keyboard Shortcuts' from the 'Settings' menu to solve the ambiguity. No action
will be triggered."

EXPECTED RESULT
Gives a warning in the Keyboard Shortcut window, when trying to an equivalent
key sequence to a Ctrl+Shift'd symbol keyboard shortcut, it should warn that
you've entered a duplicate Keyboard Shortcut, and ask if you want to cancel or
reassign it.

Operating System: CachyOS Linux 
KDE Plasma Version: 6.6.1
Qt Version: 6.11.0
Kernel Version: 6.18.9-3-cachyos (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Note: the presence of both "Split View Left/Right" and "Split View Left-Right",
and also both a Top/Bottom and Top-Bottom, is almost certainly a separate
issue, and a red herring for the issue in this bug. I think it's tracked
elsewhere (or tracked in a similar issue where there is or was a duplicate
keyboard shortcut row for Copy)

Note 2: This doesn't affect letter keys, which makes me think it could be
internationalization/keyboard-setting perhaps.

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

Reply via email to