Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.39k stars 166 forks source link

Some ignoring of system-level hotkeys Ctrl-Alt-Fx in Linux #5494

Open SN-CH opened 2 months ago

SN-CH commented 2 months ago

I use hotkeys like Ctrl-Alt-F12 to do some processing of selected piece of text in any program in Linux. They are defined system-wide in Autokey and work very reliable everywhere except Cudatext. The latter ignores them completely. It seems there is no any specific command/function/action/whatever in Cudatext which this hotkey or any other Ctrl-Alt-Fx would be assigned to (I checked all the hotkeys).

On the other hand, other hotkeys defined in Autokey, for example Ctrl-Shift-=, work normally in Cudatext. Does Cudatext somehow distaste Ctrl-Alt-...?

Alexey-T commented 2 months ago

No, Cud does not ignore them. maybe it is the Lazarus issue. you may check the same in Double Commander internal editor (F4), it is lazarus app too.

SN-CH commented 2 months ago

I use DC as well. Yes, I tried them in internal editor. They work weirdly, the first pressing do nothing, but the second one always works as expected. I tested a few Ctrl-Alt-Fx hotkeys, they all work like that. Very bizarre behaviour.

Alexey-T commented 2 months ago

this is the Lazarus issue. gtk2 or qt5 related. please report it to the Lazarus forum and/or bugtracker https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues .

SN-CH commented 2 months ago

I trust, it would be helpful if I give them the version of Lazarus used in your software. Not sure where to find it.

Alexey-T commented 2 months ago

I use Lazarus 'trunk' (git latest) from 13.03.2024. In the report - specify gtk2 or qt5 widgetset, which do you use.

SN-CH commented 2 months ago

Done. https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40925.

Alexey-T commented 2 months ago

Pls answer there:

SN-CH commented 2 months ago

I replied to that thread. I am afraid this stuff is bit too technical for me. I can test your the temporary version you provided there, but I have to ask you to compile executable.