yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
menu_shortcut_labels.cc
Go to the documentation of this file.
2
3#include <string>
4
6
7namespace yaze {
8namespace editor {
9
10std::string ShortcutLabelForAction(const ShortcutManager* shortcut_manager,
11 absl::string_view action) {
12 if (shortcut_manager == nullptr || action.empty()) {
13 return "";
14 }
15 return shortcut_manager->GetDisplayString(std::string(action));
16}
17
18} // namespace editor
19} // namespace yaze
std::string GetDisplayString(const std::string &name) const
Live, platform-formatted binding for a shortcut name.
std::string ShortcutLabelForAction(const ShortcutManager *shortcut_manager, absl::string_view action)