mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibGUI: Update TextEditor to delete emoji based on gbp cluster
Updated TextDocument and TextEditor to use calls to `find_grapheme_segmentation_boundary` in order to make "correct-feeling" deletions on backspace and delete keys being pressed
This commit is contained in:
parent
782b1d20f5
commit
f7458b3e17
Notes:
sideshowbarker
2024-07-17 00:18:28 +09:00
Author: https://github.com/ftommasi 🔰
Commit: f7458b3e17
Pull-request: https://github.com/SerenityOS/serenity/pull/17370
Issue: https://github.com/SerenityOS/serenity/issues/15261
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
Reviewed-by: https://github.com/trflynn89 ✅
3 changed files with 37 additions and 0 deletions
|
@ -102,6 +102,9 @@ public:
|
|||
TextPosition next_position_after(TextPosition const&, SearchShouldWrap = SearchShouldWrap::Yes) const;
|
||||
TextPosition previous_position_before(TextPosition const&, SearchShouldWrap = SearchShouldWrap::Yes) const;
|
||||
|
||||
size_t get_next_grapheme_cluster_boundary(TextPosition const& cursor) const;
|
||||
size_t get_previous_grapheme_cluster_boundary(TextPosition const& cursor) const;
|
||||
|
||||
u32 code_point_at(TextPosition const&) const;
|
||||
|
||||
TextRange range_for_entire_line(size_t line_index) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue