MCPcopy Create free account
hub / github.com/KLayout/klayout / get_effective_shortcut

Method get_effective_shortcut

src/laybasic/laybasic/layAbstractMenu.cc:886–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884}
885
886std::string
887Action::get_effective_shortcut () const
888{
889 if (m_hidden || m_no_key_sequence) {
890 // A hidden menu item does not have a key sequence too.
891 return std::string ();
892 } else if (m_shortcut.empty ()) {
893 return m_default_shortcut;
894 } else {
895 return m_shortcut;
896 }
897}
898
899std::string
900Action::get_effective_shortcut_for (const std::string &sc) const

Callers 1

get_shortcutsMethod · 0.80

Calls 2

stringFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected