Bug 503409 - Disable automaic layer selection in the layers docker
Summary: Disable automaic layer selection in the layers docker
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: Layer Stack (other bugs)
Version First Reported In: 5.2.9
Platform: Compiled Sources All
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-27 02:18 UTC by acc4commissions
Modified: 2025-04-28 13:23 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description acc4commissions 2025-04-27 02:18:15 UTC
SUMMARY

Krita automatically selects layers that start with certain alphabets, when I press the alphabet keys on the keyboard.
It's extremely annoying and leads to mistakes when using shortcuts.

So far, it happens with layer names starting with V and A for me (and possibly other alphabets, but I haven't tested them all)

STEPS TO REPRODUCE
1. Make layers, including layers that have names starting with A, V
2. Make sure that the layers docker is in focus
3. Press A, V on the keyboard

OBSERVED RESULT
Krita automatically selects(or activates) layers that have names starting with A or V, depending on what key you press.

EXPECTED RESULT
The selected layer should remain unchanged.

SOFTWARE/OS VERSIONS
Windows: Win10
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2025-04-27 09:37:58 UTC
I think this is automatic Qt behaviour if a listbox is in focus, not something we've coded ourselves. There might even be people who depend on this behaviour so we should really take our time considering whether we should try to override that.
Comment 3 Dmitry Kazakov 2025-04-28 07:45:41 UTC
I guess the main inconsistency is that some of the shortcuts work on the canvas and some are caught by the docker. We should make sure that all the keys are captured by the docker when it is active. Like we do with input boxes (we have a special exception for them)
Comment 4 acc4commissions 2025-04-28 13:23:50 UTC
(In reply to Dmitry Kazakov from comment #3)
> I guess the main inconsistency is that some of the shortcuts work on the
> canvas and some are caught by the docker. We should make sure that all the
> keys are captured by the docker when it is active. Like we do with input
> boxes (we have a special exception for them)

Are you sure it should work on the Layers docker, not canvas? I only use shortcuts on canvas, and I couldn't care less about selecting layers by keyboard. (A lot of them have the same default names anyway.) It'd be so annoying that random layers are accidentally and forcefully autoselected. (Note that accidentally painting on a wrong layer is the most common mistake in digital painting.) It would make users lose control, not give them more control, in my opinion.

Maybe you can run a poll on KA forum or something.