Bug 492311

Summary: Sometimes pressing a keyboard shortcut causes an "ambiguous shortcut" dialog to appear
Product: [Applications] konsole Reporter: Oded Arbel <oded>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: CONFIRMED ---    
Severity: normal CC: jos, kdedev
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=480930
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screen cast showing the problem.

Description Oded Arbel 2024-08-28 11:16:50 UTC
Created attachment 173038 [details]
screen cast showing the problem.

SUMMARY
When using keyboard shortcuts in Konsole, sometimes when pressing the keyboard shortcut, instead of performing the action, konsole pops an "ambiguous shortcut" dialog. Dismissing the dialog and repeating the same shortcut sometimes gets another dialog and sometimes performs the action.

I've managed to reproduce this issue semi-reliably with CTRL+SHIFT+F for "find" and CTRL+SHIFT+V for "paste" sometimes I also get it for CTRL+SHIFT+C ("copy") or CTRL+SHIFT+K ("clear screen") but less reliably.

STEPS TO REPRODUCE
1. select some text in the terminal and copy it.
2. press CTRL+SHIFT+V to paste it.

OBSERVED RESULT
Sometimes konsole shows the "ambiguous shortcut" dialog instead of pasting.

EXPECTED RESULT
The text should be pasted

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.1.80
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.8.0-41-generic (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® Graphics

ADDITIONAL INFORMATION
Attached screencast showing the problem. In the screencast I'm exercising CTRL+SHIFT+F, CTRL+SHIFT+C and CTRL+SHIFT+V, though the problem didn't happen for the copy action.

BTW - the screencast shows a lot of flickering - this isn't an artifact of the recording but an actual problem I experience a lot, though I haven't reported it yet.
Comment 1 Kurt Hindenburg 2024-08-28 12:55:50 UTC
Yes I started seeing this recently as well.  I get it w/ Ctrl+V since that is the key I use the most
Comment 2 TraceyC 2024-08-28 17:18:43 UTC
Thanks for the bug report. When you get the ambiguous shortcut popup, can you go into Konsole -> Settings ->Configure keyboard Shortcuts and search for the shortcut in question? There have been a couple of other bugs that sound similar, and I'm curious if this behavior is similar to them. Thanks!
Comment 3 Oded Arbel 2024-08-29 10:45:59 UTC
In the two cases where I had the "ambiguous shortcut" message and then went into the menu and clicked "settings", Konsole immediately froze (before showing the menu - so the "settings" entry in the menu bar is highlighted, but no menu is open) and consumed 100% of the CPU - then I had to kill it as it didn't recover in a reasonable time.

Currently I can't repro the problem - though there was no Konsole update (last update for me on Neon unstable was 22-08). If it repros I'll try this again.
Comment 4 Oded Arbel 2024-08-29 13:44:13 UTC
After getting "ambiguous shortcut" for CTRL+SHIFT+V , I opened the keyboard shortcut settings and see only one binding for CTRL+SHIFT+V 

I don't think that the problem was ever an actual double binding (at least not in the konsole local shortcuts) as I can always workaround the problem by repeating the shortcut until "it takes" (as can be seen in the screencast).
Comment 5 Oded Arbel 2024-09-23 10:15:14 UTC
I'm now getting these errors from Dolphin as well - specifically pressing CTRL+SHIFT+N triggers the "ambiguous shortcut" warning, and in multiple tries I could not get Dolphin to accept the shortcut (unlike Konsole that eventually "gets it"). I have verified that there are no actual duplicate shortcuts in the Dolphin shortcut configuration, and there is no such global shortcut.