1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-18 18:21:01 +00:00
serenity/Userland/Libraries/LibWeb/Page
Max Wipfli 9440a3c280 LibWeb: Improve Unicode compatibility of HTML contenteditable
This patch updates the Page::keydown_event event handler to implement
crude Unicode support. It implements new method in EditEventHandler to
more easily handle deleting a single character after the cursor.
Furthermore, it makes use of the previously implemented methods to
increment and decrement the cursor position, which take into account
that Unicode codepoint may be multiple bytes wide.

This means it is now possible to mostly edit Unicode in editable DOM
nodes without any crashes. :^)
2021-05-21 21:57:03 +02:00
..
EditEventHandler.cpp LibWeb: Improve Unicode compatibility of HTML contenteditable 2021-05-21 21:57:03 +02:00
EditEventHandler.h LibWeb: Improve Unicode compatibility of HTML contenteditable 2021-05-21 21:57:03 +02:00
EventHandler.cpp LibWeb: Improve Unicode compatibility of HTML contenteditable 2021-05-21 21:57:03 +02:00
EventHandler.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Frame.cpp LibWeb: Frame/Position: Implement cursor increment/decrement methods 2021-05-21 21:57:03 +02:00
Frame.h LibWeb: Frame/Position: Implement cursor increment/decrement methods 2021-05-21 21:57:03 +02:00
Page.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Page.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00