1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00: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:
Tom 2020-10-05 20:32:21 -06:00 committed by Andreas Kling
parent ad8284bac6
commit a7533eb29c
2 changed files with 8 additions and 1 deletions

View file

@ -52,6 +52,7 @@ public:
Set,
Shift,
Ctrl,
ClearIfNotSelected
};
virtual void move_cursor(CursorMovement, SelectionUpdate) { }