1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:47:35 +00:00

HackStudio: Don't track ctrl key state manually

Since we only need it in the mouse and key event handlers, we can get
the ctrl key state from the event. :^)
This commit is contained in:
Andreas Kling 2020-10-29 15:31:58 +01:00
parent 77e9eadd9d
commit c3a79e1483
2 changed files with 2 additions and 14 deletions

View file

@ -73,7 +73,6 @@ private:
virtual void mousemove_event(GUI::MouseEvent&) override;
virtual void mousedown_event(GUI::MouseEvent&) override;
virtual void keydown_event(GUI::KeyEvent&) override;
virtual void keyup_event(GUI::KeyEvent&) override;
virtual void enter_event(Core::Event&) override;
virtual void leave_event(Core::Event&) override;
@ -105,7 +104,6 @@ private:
GUI::TextPosition m_previous_text_position { 0, 0 };
bool m_hovering_editor { false };
bool m_hovering_link { false };
bool m_holding_ctrl { false };
bool m_autocomplete_in_focus { false };
OwnPtr<LanguageClient> m_language_client;