diff options
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh index 49767eb4..036633dc 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -103,6 +103,26 @@ private: int m_handle_key_level = 0; }; +enum class AutoInfo +{ + None = 0, + Command = 1 << 0, + OnKey = 1 << 1, + Normal = 1 << 2 +}; + +template<> +struct WithBitOps<AutoInfo> : std::true_type {}; + +constexpr Array<EnumDesc<AutoInfo>, 3> enum_desc(AutoInfo) +{ + return { { + { AutoInfo::Command, "command"}, + { AutoInfo::OnKey, "onkey"}, + { AutoInfo::Normal, "normal" } + } }; +} + bool show_auto_info_ifn(StringView title, StringView info, AutoInfo mask, const Context& context); template<typename Cmd> |
