Implement the most important menu key accelerators for Linux

Patch from @x-qq
This commit is contained in:
2020-02-02 21:40:58 -05:00
parent ddd3c8f13d
commit c4c201db6e
6 changed files with 261 additions and 109 deletions

View File

@@ -30,8 +30,11 @@ private:
void add_menu_placeholders(tgui::MenuBar::Ptr&) const;
void add_persistent_menu_items(tgui::MenuBar::Ptr&) const;
tgui::MenuBar::Ptr get_menubar_ptr() const;
bool handle_keypressed_event(const sf::Event&);
bool handle_keypressed_event(const sf::Event&) const;
bool handle_ctrl_keypress(const sf::Event&) const;
bool handle_ctrl_shift_keypress(const sf::Event&) const;
bool is_control_key_pressed() const;
bool is_shift_key_pressed() const;
void update_for_mode_0();
void update_for_mode_1();
void update_for_mode_2();