MCPcopy Create free account
hub / github.com/OpenBoardView/OpenBoardView / getKeyNames

Method getKeyNames

src/openboardview/UI/Keyboard/KeyBindings.cpp:175–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175std::string KeyBindings::getKeyNames(const std::string &bindname) const {
176 std::string str{};
177 auto kb = keybindings.find(bindname);
178 if (kb != keybindings.end()) {
179 for (const auto &kbs : kb->second) {
180 if (!str.empty())
181 str += " ";
182 str += "<" + kbs.to_string() + ">";
183 }
184 }
185 return str;
186}

Callers 2

UpdateMethod · 0.80
renderMethod · 0.80

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected