TermOx
send_shortcut.hpp
1 #ifndef TERMOX_SYSTEM_DETAIL_SEND_SHORTCUT_HPP
2 #define TERMOX_SYSTEM_DETAIL_SEND_SHORTCUT_HPP
3 #include <termox/system/event_fwd.hpp>
4 
5 namespace ox::detail {
6 
7 template <typename T>
8 [[nodiscard]] auto send_shortcut(T const&) -> bool
9 {
10  return false;
11 }
12 
13 template <>
14 [[nodiscard]] auto send_shortcut<ox::Key_press_event>(
15  ox::Key_press_event const& e) -> bool;
16 
17 } // namespace ox::detail
18 #endif // TERMOX_SYSTEM_DETAIL_SEND_SHORTCUT_HPP
Definition: event.hpp:27