mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Rework TextEdit arrow navigation to handle Unicode graphemes (#5812)
* [x] I have followed the instructions in the PR template Previously, navigating text in `TextEdit` with Ctrl + left/right arrow would jump inside words that contained combining characters (i.e. diacritics). This PR introduces new dependency of `unicode-segmentation` to handle grapheme encoding. The new implementation ignores whitespace and other separators such as `-` (dash) between words, but respects `_` (underscore). --------- Co-authored-by: lucasmerlin <hi@lucasmerlin.me>
This commit is contained in:
@@ -99,6 +99,7 @@ serde = { version = "1", features = ["derive"] }
|
||||
similar-asserts = "1.4.2"
|
||||
thiserror = "1.0.37"
|
||||
type-map = "0.5.0"
|
||||
unicode-segmentation = "1.12.0"
|
||||
wasm-bindgen = "0.2"
|
||||
wasm-bindgen-futures = "0.4"
|
||||
web-sys = "0.3.73"
|
||||
|
||||
Reference in New Issue
Block a user