Bug 350008 - Getting "key sequence is ambiguous" even though "Configure Shortcuts" has only one entry for the sequence.
Summary: Getting "key sequence is ambiguous" even though "Configure Shortcuts" has onl...
Status: REOPENED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.7.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-07 18:10 UTC by Martin Nilsson
Modified: 2024-12-29 18:51 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Nilsson 2015-07-07 18:10:31 UTC
The full message is:

The key sequence 'Alt+I' is ambiguous. Use 'Configure Shortcuts'
from the 'Settings' menu to solve the ambiguity.
No action will be triggered.

Entering Alt+I in the "Configure Shortcuts" search field lists only a single action.

Believe the problem is related to the "Settings" menu using 'i' as it's accelerator key and the "Configure Shortcuts" dialog doesn't let me change that.

Reproducible: Always

Steps to Reproduce:
1. Hold Alt to find an accelerator key used by any of the menu entries. Call it 'k'.
2. Use the "Configure Shortcuts:" dialog to configure any action to trigger on the key sequence Alt+'k'.
3. Press the key sequence in the text editor.

Actual Results:  
On the first press the chosen menu is opened.
On the second press the warning about ambiguous key sequence is displayed.

Expected Results:  
The action to which the key sequence has been bound in the "Configure Shortcuts" dialog should be executed.
Comment 1 Justin Zobel 2021-03-09 22:48:20 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 2 Karl Ove Hufthammer 2021-03-10 20:42:04 UTC
This bug is still present, but it’s a bit more complicated than described in the initial report.

I tested it using the Norwegian Nynorsk translation (with Norwegian Bokmål as a fallback), which (unfortunately) has *two* menus using ‘V’ as an accelerator:

_V_erktøy
_V_indu

When I assign ‘Alt + V’ to a shortcut, the following happens:

The first time I press ‘Alt + V’, the ‘Verktøy’ menu opens. The second time I press it, the ‘Vindu’ menu opens. And the third time I press it, the ‘ambiguous shortcut’ dialogue pops up. (And then it cycles around, so the fourth time I get the ‘Verktøy’ menu again.)

Except the error message, this makes sense. So I guess the correct behaviour would be for the shortcut action to be launched on the third (and sixth and ninth etc.) key press, but not on the first or second. But is this a bug in KDevelop or in the global keyboard shortcut feature?
Comment 3 Bernd 2024-12-26 15:39:35 UTC
*** This bug has been marked as a duplicate of bug 497906 ***
Comment 4 Igor Kushnir 2024-12-29 18:51:21 UTC
(In reply to Bernd from comment #3)
> 
> *** This bug has been marked as a duplicate of bug 497906 ***
Why mark this old bug with more detailed description and comment as a duplicate of a new bug? I can still reproduce this bug in KDevelop 6.1.241200. Reopening.