Bug 489742

Summary: Binding any action to Esc produces inconsistent behavior
Product: [Applications] krita Reporter: Flynn <alanwilson772>
Component: Shortcuts and Canvas Input SettingsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: penguinflyer2222
Priority: NOR    
Version First Reported In: 5.2.3-beta1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Flynn 2024-07-04 15:12:12 UTC
SUMMARY
I wanted to bind deselect to the escape key as I never really got used to using Krita instead of Medibang Paint. Unfortunately, while binding the key works just fine, actually using the bound key is inconsistent, depending on which area of the screen was clicked most recently. It works fine when the most recently clicked area is the dark gray frame/tool area, and not at all when the most recently clicked area is the canvas. 5.2.3.

Please don't remove the ability to bind with Esc entirely. it's the perfect deselect key

STEPS TO REPRODUCE
1. Bind Esc as a secondary input for "deselect." Keep the default as well.
2. Open a new document. Press ctrl + A to select everything.
3. Click on the gray tool border around the canvas and press Esc. See that the deselection occurs as desired.
4. Press ctrl + A to select everything again.
4. Click somewhere on the canvas itself and press Esc. See that the deselection now does not occur. Press ctrl + shift + A, and see that the default keybind still functions.

OBSERVED RESULT
The Esc key only functions as a keybind when the tool border has been clicked most recently.

EXPECTED RESULT
The Esc key should function as a keybind regardless of what part of the screen has been clicked (unless it was outside the program entirely).

SOFTWARE/OS VERSIONS
Linux: Kernel version 6.9.3 generic, Gnome version 42.
KDE Plasma Version: n/a
KDE Frameworks Version: no idea. i can't figure out how to check
Qt Version: 5.15.3
Comment 1 Freya Lupen 2024-08-22 21:03:28 UTC
Confirmed, but duplicate of bug 437130.

It can be worked around by unbinding the default setting of 'Canvas Input->Tool Invocation->Cancel' to not be Escape so it doesn't conflict.

*** This bug has been marked as a duplicate of bug 437130 ***