Page MenuHome

Adding a shortcut key to an operator from Undo History adds the shortcut key to Undo History itself instead
Closed, ArchivedPublic

Description

System Information
Operating system: Win10 64bit
Graphics card: GTX1070

Blender Version
Broken: 2.80, f606f588455e, master, 2019-05-20
Worked: N/A

Short description of error

Adding a shortcut key to an operator from Undo History adds the shortcut key to Undo History itself instead. For example, duplicate an object, open the undo history, right click the Duplicate Objects operator in the list and add a hotkey. The shortcut key is added but becomes a shortcut key to the Undo History instead of the actual operator. (Technically if the operator exists it should be Change Shortcut but you get the point)

Apart from that, opening the manual from there doesn't work either. No idea what Quick Favorites are but guessing that doesn't work either.

Anyway, if this was fixed it would be easier to add shortcuts for operators, instead of finding the right identifier and creating a new entry in the keymap you could just execute the operator, then open the undo history and add a key from there. (Of course it would be nice if you could just do this from the operator search window...)

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

0. If no objects in the scene, add a cube.

  1. Duplicate an object.
  2. Open the undo history.
  3. Right click the Duplicate Objects operator in the list and add a hotkey.

Result: A shortcut key is added for Undo History.
Expected: A shortcut key is added for the right clicked operator (in this case Duplicate Objects)

Event Timeline

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Unknown Status.May 21 2019, 9:08 AM
Brecht Van Lommel (brecht) claimed this task.

I don't consider this to be a bug. The items in the undo history are not invoking the operator, but going back in the undo history.

It might be useful to make this work, but it's outside the scope of the tracker.

That's true. But why are you able to right click in the Undo History then when it doesn't do anything useful? It gives the impression that you can do what is listed (change hotkeys and so on) when you can't. You can't right click in Operator Search (though that would be useful), so shouldn't it be disabled in Undo History as well?

There's just a threshold to what we consider a bug vs. a potential improvement, I don't consider these bugs.