1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-13 00:11:00 +00:00
serenity/Userland
Max Wipfli 08d09c4afb LibWeb: Improving cursor behavior in editable DOM nodes
This patch makes two modifications to improve the behavior of cursors in
editable DOM nodes, such as HTML tags with the contenteditable
attribute.

When the cursor blink cycle is reset in an editable DOM node, a repaint
should be initiated. For this, set_needs_display() needs to be called on
the layout node. Previously, the cursor blink cycle would not reset
properly and moving the cursor with the arrow keys did not feel
intuitive.

Furthermore, this modifies one of the conditions necessary to actually
paint the cursor, which previously prevented it from being painted when
at the end of a text node, after all the text present.
2021-05-21 21:57:03 +02:00
..
Applets Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
Applications DisplaySettings: Restrict selection of fixed-width fonts 2021-05-21 20:15:51 +02:00
Demos Revert "Userland: static vs non-static constexpr variables" 2021-05-21 10:30:52 +01:00
DevTools Applications: Use titlecase and distinct underlined characters in menus 2021-05-21 18:41:28 +01:00
DynamicLoader DynamicLoader: Remove math functionality in favor of -lgcc 2021-05-07 15:35:50 +02:00
Games Revert "Userland: static vs non-static constexpr variables" 2021-05-21 10:30:52 +01:00
Libraries LibWeb: Improving cursor behavior in editable DOM nodes 2021-05-21 21:57:03 +02:00
Services WindowServer: Store system font queries in WindowServer.ini :^) 2021-05-21 20:15:51 +02:00
Shell Shell: Make sure all tests put their temp dirs in /tmp 2021-05-22 00:24:27 +04:30
Utilities js: Don't print newline for empty ArrayBuffer 2021-05-21 19:29:23 +01:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00