mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
LibWeb: Allow inserting text at the cursor by typing characters :^)
This works everywhere right now, but it's obviously not going to stay that way forever. :^) Note that this does not advance the cursor correctly for whitespace since the cursor is DOM-based and doesn't take whitespace collapsing into account yet.
This commit is contained in:
parent
2c679d0c8b
commit
bc299754f6
7 changed files with 35 additions and 0 deletions
|
@ -85,6 +85,7 @@ public:
|
|||
Gfx::IntPoint to_main_frame_position(const Gfx::IntPoint&);
|
||||
Gfx::IntRect to_main_frame_rect(const Gfx::IntRect&);
|
||||
|
||||
DOM::Position& cursor_position() { return m_cursor_position; }
|
||||
const DOM::Position& cursor_position() const { return m_cursor_position; }
|
||||
void set_cursor_position(const DOM::Position&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue