mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-08 03:42:09 +00:00
Add shortcut in the tool-tip of ToolBar.
This commit is contained in:
parent
82931688ad
commit
9e687d84b0
@ -505,6 +505,15 @@ void ToolBar::openTipWindow(int group_index, Tool* tool)
|
||||
tooltip += ":\n";
|
||||
tooltip += tool->getTips();
|
||||
}
|
||||
|
||||
// Tool shortcut
|
||||
JAccel accel = get_accel_to_change_tool(tool);
|
||||
if (accel) {
|
||||
char buf[512]; // TODO possible buffer overflow
|
||||
jaccel_to_string(accel, buf);
|
||||
tooltip += "\n\nShortcut: ";
|
||||
tooltip += buf;
|
||||
}
|
||||
}
|
||||
else {
|
||||
tooltip = "Configure Tool";
|
||||
|
Loading…
Reference in New Issue
Block a user