paranext / paranext-core

Electron client, extension host, and C# library for Paranext
https://paranext.github.io/paranext-core/
MIT License
17 stars 2 forks source link

Cursor jumps to beginning of verse when editing text in PB Scripture Editor #1264

Open roopa0222 opened 2 weeks ago

roopa0222 commented 2 weeks ago

Describe the bug Select last section of a sentence in Scripture Editor and use the Context Menu to cut the text. Notice that the cursor jumps to the beginning of the verse instead of remaining at the end of the sentence.

To Reproduce Steps to reproduce the behavior:

  1. Open WEB project using Scripture Editor
  2. Set the BCV to Psalm 1:1
  3. Place the cursor at the end of verse 1:2 and select Yahwehs Law.
  4. Use Context menu and select Cut
  5. Notice that the cursor jumps to the beginning of the verse.

Expected behavior Cursor should not jump. Note : If the cursor is placed after Y in the Yahweh's it remains in the same place.

https://github.com/user-attachments/assets/e22913e8-f1dd-4b00-bf3b-cde83e52f510

irahopkinson commented 2 weeks ago

@roopa0222's last note is significant. You can select and cut any tail of a paragraph as long as it doesn't leave a space character behind at the end. To me that seems like another normalizer related issue, see #1071.