Hotkey in Find dialog

Post Reply
vidovan
Posts: 7
Joined: 05.12.2023 16:32

Hotkey in Find dialog

Post by vidovan »

I'm using CudaText on Windows 10 with Slovak keyboard layout.
In CudaText, there is a hotkey for opening a menu with options in the Find/Replace dialog: "Ctrl+Alt+." (or "AltGr+.")
This key combination is used in Czech/Slovak keyboard layouts for typing ">" character. So there is no way to type ">", I have to copy it from text and paste it into the dialog. Is there a way to work around? I did not find an option to redefine the shortcut.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Hotkey in Find dialog

Post by main Alexey »

In the next update, I will change Ctrl+Alt+. to Ctrl+Alt+D.
BTW, where is the online proof that Slovak keyboard uses the Ctrl+Alt+. ? I cannot find.

EDIT
found it: https://sourceforge.net/p/dev-cpp/bugs/696/
vidovan
Posts: 7
Joined: 05.12.2023 16:32

Re: Hotkey in Find dialog

Post by vidovan »

Ctrl+Alt and AltGr are treated in Windows as same. There are many more key combinations like this, i.e:
AltGr+x -> #, AltGr+c -> &, AltGr+v -> @, AltGr+d -> Đ, AltGr+q -> \, AltGr+w ->|, etc...

You can read about it here: https://en.wikipedia.org/wiki/AltGr_key
Windows interprets Ctrl+Alt as AltGr, to accommodate some compact keyboards like those of netbooks which have neither the AltGr key nor a right-hand Alt key. Thus Ctrl+Alt+a has the same effect as AltGr+a. Because of this feature, Microsoft advises that Ctrl+Alt not be used as part of any application keyboard shortcut, as it would prevent typing the matching AltGr character on such keyboards.
Maybe just allowing the user to change the hotkey to something else will be enough to solve this issue?
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Hotkey in Find dialog

Post by main Alexey »

Ok, I added option to customize this hotkey
"find_hotkey_more": "Ctrl+Alt+D"

Not sure the changing of Ctrl+Alt+<smth> hotkeys will be good for users, who used to hotkeys.
vidovan
Posts: 7
Joined: 05.12.2023 16:32

Re: Hotkey in Find dialog

Post by vidovan »

Thank you. Of course, I did not propose changing any existing hotkeys, just allowing the users to configure them, if they need to. :) I think the best solution is to make them not hard-wired, because who knows what other combinations can appear in future... :)

By the way thank you for this editor, I use it daily as my main editor and it is great!
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Hotkey in Find dialog

Post by main Alexey »

Can you compare your prev text editor with this one?
many details, as possible.
many aspects of apps.
not needed for a) sublime text, b) notepad++ because of wiki page https://wiki.freepascal.org/CudaText_VS_other_editors
vidovan
Posts: 7
Joined: 05.12.2023 16:32

Re: Hotkey in Find dialog

Post by vidovan »

I used PSPad (https://www.pspad.com/) in the past (until ca 2014), so I believe many things have changed)
I surely do not remember everything since then, but from the top of my head:

CudaText pros
* open source
* frequent updates
* simpler, more modern ui
* multi carets
* more uniform settings
* minimap
* code folding
* many really useful plugins, like number utils

PSPad pros
* integrated hex editor / hex mode
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Hotkey in Find dialog

Post by main Alexey »

thanks. :) not enough details to be put to the wiki, but thanks.
Post Reply