Phenomenon
In Edge on Windows, when navigating with arrow keys through text containing emoji, the caret position behaves unexpectedly. The arrow keys may skip over emoji characters or position the caret incorrectly.
Reproduction example
- Create a contenteditable div.
- Type some text with emoji, for example: “Hello 👋 world 🌍”.
- Use the left and right arrow keys to move the caret through the text.
- Observe the caret position relative to the emoji.
Observed behavior
- In Edge on Windows, arrow keys may skip over emoji characters.
- The caret may jump past emoji instead of moving character by character.
- The visual position of the caret may not match the actual text position.
Expected behavior
- Arrow keys should move the caret one character at a time, including emoji.
- The caret should be positioned correctly relative to emoji characters.
- Navigation should be predictable and consistent.