1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:47:46 +00:00

LibGUI: Ensure the "End" key sets the cursor to the visual line end

We are currently setting the physical mouse position to the visual
cursor content location. In a line containing only a multi-code point
emoji, this would set the cursor to column 1 rather than however many
code points there are.
This commit is contained in:
Timothy Flynn 2023-02-27 08:16:48 -05:00 committed by Tim Flynn
parent a81e1a8c4f
commit 4edd8e8c5e
3 changed files with 17 additions and 5 deletions

View file

@ -191,6 +191,7 @@ public:
void set_cursor(size_t line, size_t column);
virtual void set_cursor(TextPosition const&);
void set_cursor_to_text_position(Gfx::IntPoint);
void set_cursor_to_end_of_visual_line();
Syntax::Highlighter* syntax_highlighter();
Syntax::Highlighter const* syntax_highlighter() const;