Bug 502707

Summary: Keyboard shortcuts blocked after running certain scripts
Product: [Applications] krita Reporter: w <r.margaret37>
Component: ScriptingAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: minor    
Priority: NOR    
Version First Reported In: 5.2.9   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description w 2025-04-12 12:15:07 UTC
SUMMARY
This bug concerns actions which normally display a dialog, but instead run with last used settings when activated via script. Encountered with Color to Alpha and tested with filters such as Blur.

After running one of these actions in a script, Krita keyboard shortcuts become unresponsive. This does not affect system-wide shortcuts like Cmd+Z or Cmd+Q. It affects some but not all Canvas Input shortcuts.

The effect can be unblocked by opening any dialog or unfocusing the application, but not by opening popups such as Patterns or switching tabs.

STEPS TO REPRODUCE
1. Run `Krita.instance().action('krita_filter_blur').trigger()` in a script.
2. Input any Krita-specific keyboard shortcut, e.g. x to swap colors: note no effect.
3. Open and close Krita Preferences. Note restored function.

OBSERVED RESULT
Shortcuts have no effect until "unstuck" by some action above.

EXPECTED RESULT
All shortcuts work as assigned.

SOFTWARE/OS VERSIONS
macOS: Sequoia 15.4