Bug 421773 - Create Blank frame using keyboard shortcut works, but on a wrong layer
Summary: Create Blank frame using keyboard shortcut works, but on a wrong layer
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: 4.2.9
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Eoin O'Neill
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-19 11:58 UTC by Vladimir Savic
Modified: 2020-07-28 20:17 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Savic 2020-05-19 11:58:13 UTC
SUMMARY

By default there is no shortcut for this action, therefore, I've defined my own keyboard shortcut - "s".

Open a default document, with default layers: Background and Layer1. Show them in the timeline and unlock BG layer.


STEPS TO REPRODUCE
1. Move to some frame (let's say 10)
2. Hit key "s"
3. Observe that Blank frame is indeed created
4. Move to some other frame (let's go to 20)
4. Click at other layer in the Layers panel
5. Hit "s" again

OBSERVED RESULT

Even though one layer is selected, Blank frame is being created at previously selected layer.

Note: Hitting RMB at the correct time (frame) and layer box and choosing Create Blank frame from the context menu works as supposed.  

EXPECTED RESULT

A new blank frame is being created at the selected layer. 

SOFTWARE/OS VERSIONS
Manjaro Linux
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Comment 1 Ahab Greybeard 2020-05-20 09:02:01 UTC
Using a shorcut key for Create Blank Frame operates in the same way as the RMB method. The blank frame is created according to which layer/frame is selected in the Timeline docker.

When you do RMB on the Timeline, the Layers docker selected layer changes to the layer that was clicked in the Timeline docker.

When you do a keyboard shortcut on the Timeline, the Layers docker selected layer is not altered.

The Layers Docker selected layer determines where any drawing takes place.

The change of active layer in the Layers docker with the RMB method happens when you do the right-click and the context menu comes up. It seems that that this is bypassed when you use a keyboard shortcut.
Comment 2 Emmet O'Neill 2020-07-28 20:17:50 UTC
As Ahab explained, the new keyframe is always created on the *selected* frame instead of the *active* one. So this isn't actually a bug, but part of the current design of the timeline docker.

That's not to say that we can't or won't improve the design in the future, of course, so we'll try to consider this as we rethink how things work within the timeline.

Thanks again for the feedback, Vladimir. I'm marking this a "not a bug" for now, but we'll keep it in mind.