| 884 | } |
| 885 | |
| 886 | std::string |
| 887 | Action::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 | |
| 899 | std::string |
| 900 | Action::get_effective_shortcut_for (const std::string &sc) const |
no test coverage detected