Godot-proposals: Add hotkey(Shortcuts) description to button tooltips.

Created on 22 Sep 2019  路  8Comments  路  Source: godotengine/godot-proposals

Currently there are no hotkey description in the tool tips of buttons:
Godot_v3 1 1-stable_win64_2019-09-22_12-13-10

It would be great if there were:
2019-09-22_14-26-09

EDIT:(Answering questions)
Describe the project you are working on:
A clone of the dos game Stone Age

Describe how this feature / enhancement will help your project:
It's quite frustrating using the debugger and other features if you forget the hotkeys for some actions. It would be far easier to for the user to see the shortcut for the action in the tooltip of the button instead of searching for it in the keybinding menu.

Show a mock up screenshots/video or a flow diagram explaining how your proposal will work:
Screenshot of VS code editor implementing the feature is above.

Describe implementation detail for your proposal (in code), if possible:
Well I assume the key bindings are in some sort of data-structure and so are the tool tips strings.
for example :
Keys:

| Key | function signal |
| --- | --- |
| F11| debug_step_into |
| F12 | debug_step_over |

Button Tool tips:

| String Tool Tip | function signal |
| --- | --- |
| "Step Into"| debug_step_into |
| "Step over" | debug_step_over |

So implementation would be to somehow connect those data structures.

If this enhancement will not be used often, can it be worked around with a few lines of script?:

I don't see how.

Is there a reason why this should be core and not an add-on in the asset library?:

This seems like basic functionality that the overwhelming majority of similar software already implements.

editor

Most helpful comment

I've opened a pull request that fixes this for the debugger buttons: https://github.com/godotengine/godot/pull/32258

There may be other instances of missing shortcut tooltips, please report them if you find any :slightly_smiling_face:

All 8 comments

If you want this to be a proposal, you will have to fill out all the questions, though.

If you want this to be a proposal, you will have to fill out all the questions, though.

Done.

Would be super helpful!

This is already done for most buttons in the editor, but not all. Some buttons don't use the shortcut system, so their tooltip needs to be set manually.

This is already done for most buttons in the editor, but not all. Some buttons don't use the shortcut system, so their tooltip needs to be set manually.

Yes I've noticed now that the scene designer has this for it's toolbar:
Godot_v3 1 1-stable_win64_2019-09-22_19-52-15

Though the absence of this feature is keenly felt in the debugger specifically.

I've opened a pull request that fixes this for the debugger buttons: https://github.com/godotengine/godot/pull/32258

There may be other instances of missing shortcut tooltips, please report them if you find any :slightly_smiling_face:

I swear I've seen similar issue on main repo somewhere >_>
Can't find it though.

I believe this can be closed. godotengine/godot#32258 is merged, so the tooltips in the debugger are already solved. If there are other missing then an issue in the main repo can be opened so they can fixed case by case.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sprite-1 picture sprite-1  路  3Comments

arkology picture arkology  路  3Comments

WilliamTambellini picture WilliamTambellini  路  3Comments

davthedev picture davthedev  路  3Comments

PLyczkowski picture PLyczkowski  路  3Comments