1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

LibGUI: Improve up/down arrow behavior in TextEditor with wrapping

Instead of moving between physical lines, the up/down arrow keys now
move between visual lines.
This commit is contained in:
Andreas Kling 2021-01-03 00:11:56 +01:00
parent bd2a7c414c
commit 906e310411
2 changed files with 35 additions and 14 deletions

View file

@ -191,6 +191,7 @@ protected:
Gfx::IntRect ruler_content_rect(size_t line) const;
TextPosition text_position_at(const Gfx::IntPoint&) const;
TextPosition text_position_at_content_position(const Gfx::IntPoint&) const;
bool ruler_visible() const { return m_ruler_visible; }
Gfx::IntRect content_rect_for_position(const TextPosition&) const;
int ruler_width() const;