mapeditor/tiled

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Display ALL keyboard shortcuts #3368

eishiya posted onGitHub

Currently, the Keyboard Shortcuts list only displays and allows searching by the primary keyboard shortcut. However, some actions have additional shortcuts by default. This makes it harder to learn about these additional shortcuts and makes it much harder to spot shortcut conflicts, as only conflicts with primary shortcuts seem to be reported.

It would be very helpful if the Keyboard Shortcuts list could display all the shortcuts that are currently available, including these secondary ones. To help differentiate multiple shortcuts from a combo, perhaps an extra wide space could be used between them instead of a comma, or maybe a half-opacity interpunct.

Additionally, it would be nice if there was some indication that a shortcut has been modified or that it is the default. An icon would probably be best, since icons could be used even on those shortcuts that are unset, unlike differing text styles/colours.


Additionally, it would be nice if there was some indication that a shortcut has been modified or that it is the default. An icon would probably be best, since icons could be used even on those shortcuts that are unset, unlike differing text styles/colours.

Modified shortcuts have the entire row displayed in bold (and conflicts turn rows red):

image

That should suffice, right?

posted by bjorn almost 3 years ago

In my dark Tiled Fusion theme, the difference between bold and not bold is fairly minor and I have a hard time spotting it, especially if I've looked up the action by name and don't have a non-modified bit of text to compare with. image I'd completely forgotten about the bolding, because it's not been useful for spotting defaults vs non-defaults ):

Red for conflicts is fine. However, I hope conflict spotting can be improved, as currently conflicts don't seem to be reported when they involve secondary shortcuts, as you can see in the screenshot above. Ctrl+W is the secondary shortcut for Close, but setting StampTool to use it does not report a conflict (though the conflict is reported to the external console if I run Tiled from console, QAction::event: Ambiguous shortcut overload: Ctrl+W). Instead, it just silently breaks my ability to either Close or activate the Stamp Brush with my keyboard, and Ctrl+W works as Close when I'm in a context where the the Stamp Brush is not available.

posted by eishiya almost 3 years ago

I hope conflict spotting can be improved, as currently conflicts don't seem to be reported when they involve secondary shortcuts, as you can see in the screenshot above. Ctrl+W is the secondary shortcut for Close, but setting StampTool to use it does not report a conflict

This part has been fixed in 5011f77cb01a25f2a7509d91e0f3ea8a96d2a8d3. It also adjusts the key: filter to look for all shortcuts on an action, even though alternative shortcuts are not displayed yet (changing that is beyond the scope of 1.8.x releases).

posted by bjorn almost 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests