Hi! I'm a user of the Kakoune editor. One of its features is multiple selections, that is, multiple cursors each selecting a different region of text. To manually place a new selection, we can use Ctrl + Left mouse click. It works well on every terminal I've tested so far except Konsole, which seems to not send the corresponding event to Kakoune. STEPS TO REPRODUCE 1. Install any recent version of Kakoune (the version in your distro repo should do the job, albeit colors will only work properly on Konsole with the last Kakoune's release: version 2021.08.28; this bug can be reproduced also in previous versions though) 2. Run `kak` in Konsole; it will open a scratch buffer 3. Press `Ctrl+Left click` on any word in that scratch buffer OBSERVED RESULT The cursor jumps to the word pointed by the mouse as if the `Ctrl` modifier is not pressed. EXPECTED RESULT A new cursor should be created at the mouse position, adding to the cursor already present when Kakoune starts, resulting in two cursors. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Kubuntu 21.04 KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.80.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION Also tested on Opensuse Tumbleweed with Konsole 21.08.1. Tweaking settings in `Settings -> Edit current profile -> Mouse -> Miscellaneous` doesn't take any effect on the observed behaviour. Terminal emulators I can attest `Ctrl+Left click` works properly: Kitty, Alacritty, Gnome Terminal, Wezterm. Kakoune website: https://kakoune.org
Hi! If you need extra information regarding this bug, please tell me, and I will try to give any information you need.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/781
Git commit b4a3a076b35b6b1f183e374e67953f67e0412b4c by Kurt Hindenburg, on behalf of Luis Javier Merino Morán. Committed on 12/12/2022 at 19:34. Pushed by hindenburg into branch 'master'. Support Ctrl and Alt in mouse tracking mode Konsole uses Shift to bypass mouse tracking mode, so we don't support that one. We also don't support Alt + wheel, since Qt uses ihat to simulate an horizontal wheel. M +5 -9 src/Vt102Emulation.cpp M +31 -10 src/terminalDisplay/TerminalDisplay.cpp M +2 -1 src/terminalDisplay/TerminalDisplay.h https://invent.kde.org/utilities/konsole/commit/b4a3a076b35b6b1f183e374e67953f67e0412b4c
Nice! Thank you very much!
Git commit a072d060c6abf94f0fcaf95531c8260b814f4314 by Kurt Hindenburg, on behalf of Luis Javier Merino Morán. Committed on 30/12/2022 at 16:49. Pushed by hindenburg into branch 'release/22.12'. Support Ctrl and Alt in mouse tracking mode Konsole uses Shift to bypass mouse tracking mode, so we don't support that one. We also don't support Alt + wheel, since Qt uses ihat to simulate an horizontal wheel. M +5 -9 src/Vt102Emulation.cpp M +31 -10 src/terminalDisplay/TerminalDisplay.cpp M +2 -1 src/terminalDisplay/TerminalDisplay.h https://invent.kde.org/utilities/konsole/commit/a072d060c6abf94f0fcaf95531c8260b814f4314