Bug 462032

Summary: Multiple cursor functionality is broken when Ctrl is selected as multiple cursor modifier
Product: [Applications] kate Reporter: Alberto Torres Ruiz <kungfoobar>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal CC: christoph, mahe
Priority: NOR    
Version First Reported In: 22.08.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alberto Torres Ruiz 2022-11-19 18:01:58 UTC
SUMMARY
As the title says, the feature stops working when I switch the modifier to Ctrl.

STEPS TO REPRODUCE
1. Go to Configure -> Editing -> Text Navigation
2. Change "Multiple Cursor Modifiers" to Ctrl
3. Do Ctrl+click in various places of a body of text

OBSERVED RESULT
Nothing happens, as if the feature was disabled. Except when ctrl+clicking past the end of the document, showing the click is being registered and it is indeed doing something. But obviously only being able to select the end of the document makes it useless.

EXPECTED RESULT
Multiple cursors are added, one for each spot the user clicks on. It works correctly with all other keys and key combinations (including Meta, I changed KWin configuration to test this, by default the meta button moves/resizes the window instead).

SOFTWARE/OS VERSIONS
Linux: Arch, SteamOS beta (3.4), kernel 5.13.0-valve31-1-neptune
KDE Plasma Version: 5.26.1
KDE Frameworks Version:
Qt Version:
(not filling the last two, I don't know them because the system froze and downgraded the distro to avoid further problems, I'm sorry)

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2022-11-19 18:23:46 UTC
I think the issue is that Ctrl-click is already used e.g. the goto definition of the LSP plugin, but I might be wrong.
Does it work if you e.g. disable the LSP plugin for a try?
Comment 2 Alberto Torres Ruiz 2022-11-21 15:57:17 UTC
(In reply to Christoph Cullmann from comment #1)
> I think the issue is that Ctrl-click is already used e.g. the goto
> definition of the LSP plugin, but I might be wrong.
> Does it work if you e.g. disable the LSP plugin for a try?

It seems you're right, it's the LSP plugin. But there's no way to switch the key in the LSP plugin. Should I fill another bug with it, or should this one be renamed? Maybe LSP should automatically use Ctrl instead of Alt when Ctrl is being used for multiple cursors.