Open
Description
Lexical version:
v0.23.0
Steps To Reproduce
- Open the lexical playground
- Type one backtick, add some text, type the second backtick - the inline code node should be created
- Without leaving the inline code, move to the center of it, add space with some more text
- You can't escape the inline code, either with the space (the default behavior) or the right arrow
Screen.Recording.2025-01-08.at.11.31.24.mov
The issue exists only when you've not escaped the code before. An example of it working fine (I was able to escape with the right arrow):
Screen.Recording.2025-01-08.at.11.36.39.mov
The current behavior
Can't escape the inline code
The expected behavior
Can escape the inline code
Impact of fix
It's an edge case, sure, but it could be quite frustrating because you have to delete the whole code node to eliminate it.