tiled icon indicating copy to clipboard operation
tiled copied to clipboard

`Shift+Del` doesn't work as shortcut for Delete.

Open UliAbo opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. In Tiled, I can change the keybinding of "delete" from DEL to SHIFT+DEl, but without any effect on deleting Objects.

I talked with @eishiya on Discord on 27.03.2022 (16:28) about the problem, they can confirm that and added further observations:

Set my Delete to Shift+Del Layers panel: both Del and Shift Del will delete a layer Properties panel: ditto for custom properties Map editor, selected tiles: Neither Del nor Shift+Del delete tiles

Set to Ctrl+Del Del/Shift+Del/Ctrl+Del will delete layers and properties still Ctrl+Del and nothing else deletes tiles, as expected.

So, I can reproduce Abo's experience with the Shift+Del Delete shortcut. I guess Del is hard-coded for deleting layers and properties, and the configurable shortcut is only for Edit > Delete (i.e. objects and tiles).

Describe the solution you'd like Being flexible with using dfferent modifiers for such keybindings, like SHIFT + DEL, although Shift is used for Tools.

Describe alternatives you've considered Being not so clumsy and try to avoid the "DEL" key to prevent deleting stuff accidentally. Or using CTRL+DEL, but this feels weird.

UliAbo avatar Mar 27 '22 14:03 UliAbo

I've been testing one of the nightlies and launching it from CLI instead of installing it, which happens to also give me some unexpected output that might be helpful. Looks like when editing that shortcut, I got a few outputs of this: image

Sounds like there is something hard-coded to Shift+Del and that's why setting Delete to it doesn't work even though nothing else appears to use that shortcut.

eishiya avatar Mar 28 '22 18:03 eishiya