mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibGUI: Clear selection if right-clicking item that isn't selected
If we're right-clicking on an item that isn't currently selected, clear the selection first. Fixes #3665
This commit is contained in:
parent
ad8284bac6
commit
a7533eb29c
Notes:
sideshowbarker
2024-07-19 02:01:34 +09:00
Author: https://github.com/tomuta
Commit: a7533eb29c
Pull-request: https://github.com/SerenityOS/serenity/pull/3698
Issue: https://github.com/SerenityOS/serenity/issues/3665
2 changed files with 8 additions and 1 deletions
|
@ -52,6 +52,7 @@ public:
|
|||
Set,
|
||||
Shift,
|
||||
Ctrl,
|
||||
ClearIfNotSelected
|
||||
};
|
||||
|
||||
virtual void move_cursor(CursorMovement, SelectionUpdate) { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue