mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
LibGUI: Hold down Alt when clicking TreeView to expand full subtree
On other operating systems, if you hold down Alt when you click to expand part of a tree, it expands all of the children of the node you clicked. This commit makes our TreeView act the same way :)
This commit is contained in:
parent
7809cc6557
commit
22d54cd446
Notes:
sideshowbarker
2024-07-17 08:55:54 +09:00
Author: https://github.com/jedieaston
Commit: 22d54cd446
Pull-request: https://github.com/SerenityOS/serenity/pull/15936
2 changed files with 28 additions and 0 deletions
|
@ -43,6 +43,7 @@ public:
|
|||
protected:
|
||||
TreeView();
|
||||
|
||||
virtual void mousedown_event(MouseEvent&) override;
|
||||
virtual void paint_event(PaintEvent&) override;
|
||||
virtual void doubleclick_event(MouseEvent&) override;
|
||||
virtual void keydown_event(KeyEvent&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue