Page MenuHome

Assign Shortcut doesn't work for POSE>Animation>Clear Keyframes
Closed, ResolvedPublic


System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX TITAN X/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19

Blender Version
Broken: version: 2.83.4, 2.91 date: 2020-08-07
Worked: N/a

Short description of error
This problem also happens in 2.91.
The right click>assign a custom shortcut to Clear animation from the selected object. It will get listed in the shortcuts, but it will not work.

Exact steps for others to reproduce the error

  • Create an armature bone.
  • Extrude or subdivide twice.
  • In pose mode rotate the 2 end bones and add a keyframe.
  • "assign shortcut" to Pose menu>Animation>Clear Keyframes... (use CTRL+SHIFT+K).

It will not say it is assigned, and it will not work. It is, however, assigned in the keymap navigation.

Event Timeline

Shortcut does work but it is defined in animation section not in 3D viewport. So it works in dopesheet for example.

To make it work in 3D viewport you can define it manually in keymap > 3D View > Pose > Pose(Global)

I don't know exactly how new keymap item gets its category, so I am not sure if this is bug.

The context and keymap is obtained from WM_keymap_guess_opname through the name of the operator.
But this case is strange, it seems that the km should be another one.
This looks like a bug in my opinion.