mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:57:44 +00:00
LibGUI+FontEditor: Restore normalized selections on Undo/Redo
Selections are always normalized when saving undo commands. The restore_selection() function reverses this process so negatively sized selections (created right-to-left) continue to resize correctly with the keyboard when restored.
This commit is contained in:
parent
02212f373b
commit
40e94a315a
3 changed files with 16 additions and 2 deletions
|
@ -57,7 +57,10 @@ public:
|
|||
|
||||
void set_active_range(Unicode::CodePointRange);
|
||||
void set_active_glyph(int, ShouldResetSelection = ShouldResetSelection::Yes);
|
||||
|
||||
void set_selection(int start, int size, Optional<u32> active_glyph = {});
|
||||
void restore_selection(int start, int size, int active_glyph);
|
||||
|
||||
void scroll_to_glyph(int);
|
||||
void update_glyph(int);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue