Bug 526208 - Inconsistency in canvas taking keyboard focus from timeline
Summary: Inconsistency in canvas taking keyboard focus from timeline
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Animation (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: Emmet O'Neill
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-09-24 23:57 UTC by Emmet O'Neill
Modified: 2026-09-29 08:16 UTC (History)
1 user (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 Emmet O'Neill 2026-09-24 23:57:07 UTC
Sometimes the canvas takes keyboard focus, sometimes it doesn't (or maybe it passes inputs through). 

For example, when scrubbing back and forward through animation frames with the keyboard's arrow keys, I think if the selected layer is animated (i.e. contains key frames) the canvas will not take focus, so you can seamlessly switch frames while drawing. However, if the selected layer is non-animated, drawing will cause the canvas to grab focus on eat the arrow key inputs, preventing scrubbing.

Overall this edge case can create a slightly inconsistent feeling while animating, so we should do something to make sure that the canvas either doesn't grab focus OR that certain inputs are consistently passed through from the canvas to a sensible UI element instead of eating them and doing nothing.
Comment 1 Iris 2026-09-25 13:50:12 UTC
This MR is intended to fix this issue:
https://invent.kde.org/graphics/krita/-/merge_requests/2952
Comment 2 Dmitry Kazakov 2026-09-29 08:16:00 UTC
Git commit 8255c485500621234487bd1166d1185fd47dab11 by Dmitry Kazakov, on behalf of Iris Hormoviti.
Committed on 29/09/2026 at 07:44.
Pushed by dkazakov into branch 'master'.

Fix Inconsistency in canvas taking keyboard focus from timeline
This commit changes two things:
- It makes the canvas controller not swallow over inputs that it's supposed to ignore.
- It also makes it so in an animated image, the change frame action will change the current frame regardless of if the selected layer is animated or not.

M  +2    -2    libs/ui/canvas/kis_canvas_controller.cpp
M  +11   -3    libs/ui/input/kis_change_frame_action.cpp

https://invent.kde.org/graphics/krita/-/commit/8255c485500621234487bd1166d1185fd47dab11