Maniphest T94660

Delete operator in Blender File mode of Outliner Editor can not be mapped to a hotkey
Closed, Duplicate

Assigned To
None
Authored By
Ludvik Koutny (rawalanche)
Jan 5 2022, 12:49 PM
Tags
  • BF Blender
Subscribers
Ludvik Koutny (rawalanche)
Philipp Oeser (lichtwerk)

Description

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 496.76

Blender Version
Broken: version: 3.0.0, branch: SelectThrough (modified), commit date: 2021-12-15 12:21, hash: rB6349dd43b17a
Worked: (newest version of Blender that worked as expected)

Short description of error
When using Outliner in Blender File Mode, Delete operator is not assigned to any hotkey by default, and hence the Delete key does not work in this mode to delete datablocks. When using the Right Click context menu to assign a Delete key shortcut to this operator, Blender throws a "Unsupported key: Unknown" error. The assigned shortcut then does not work.

Exact steps for others to reproduce the error

  1. Open a default new blender file.
  2. Set the Outliner to Blender File mode
  3. Open material section, select the "Material" material and press delete. Observe nothing happens
  4. Right click the Material, and observe the Delete operator has no keyboard shortcut assigned.
  5. Right click the Delete operator in the context menu, select Assign Shorcut, and assign it to the Delete key. Observe the console error: "Unsupported key: Unknown"
  6. Now that the Delete key is assigned, try to use it.

Result: The Delete key does not work in Blender File Outliner mode despite being assigned.
Expected: The Delete key works (and should be assigned in the default keymap out of the box).

Event Timeline

Ludvik Koutny (rawalanche) renamed this task from Delete operator in Blender File mode of outliner can not be mapped to a hotkey to Delete operator in Blender File mode of Outliner Editor can not be mapped to a hotkey.Jan 5 2022, 12:49 PM
Ludvik Koutny (rawalanche) created this task.
Philipp Oeser (lichtwerk) added a subscriber: Philipp Oeser (lichtwerk).Jan 5 2022, 3:33 PM

Delete or X only work on objects, scenes, collections (the X icon in the context menu of other IDs is misleading, it is not the shortcut as you noticed already).
So both Delete and X are taken already as shortcuts, if you assign them to the "other" Delete, it will still try to act on objects (and do nothing on Materials).

For other IDs, please pick another shortcut (suggest +X?)

This has also been reported before see T93401: The X or Delete button does not work in the outliner (Blender File), will merge reports