mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:17:35 +00:00
TerminalWidget: Implement ALT selection
When holding ALT & selecting text, the terminal now forms a rectangle selection similar to other terminal behaviors.
This commit is contained in:
parent
4ba206b7e5
commit
72ef3e529a
2 changed files with 34 additions and 3 deletions
|
@ -92,6 +92,7 @@ private:
|
|||
virtual void paint_event(GUI::PaintEvent&) override;
|
||||
virtual void resize_event(GUI::ResizeEvent&) override;
|
||||
virtual void keydown_event(GUI::KeyEvent&) override;
|
||||
virtual void keyup_event(GUI::KeyEvent&) override;
|
||||
virtual void mousedown_event(GUI::MouseEvent&) override;
|
||||
virtual void mousemove_event(GUI::MouseEvent&) override;
|
||||
virtual void mousewheel_event(GUI::MouseEvent&) override;
|
||||
|
@ -130,6 +131,8 @@ private:
|
|||
|
||||
bool m_should_beep { false };
|
||||
bool m_belling { false };
|
||||
bool m_alt_key_held { false };
|
||||
bool m_rectangle_selection { false };
|
||||
|
||||
int m_pixel_width { 0 };
|
||||
int m_pixel_height { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue