CodeEditApp / CodeEditTextView

A text editor specialized for displaying and editing code documents. Written in pure Swift.

Home Page:https://codeeditapp.github.io/CodeEditTextView/documentation/codeedittextview/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐞 Selecting text and then pressing delete key deletes selection and one character preceding selection

austincondiff opened this issue Β· comments

Description

When text is selected and the delete key is pressed, it will delete the selection but also one character that preceded the selection as well.

To Reproduce

  1. Type "12345"
  2. Select "45"
  3. Press the delete key
  4. Notice that instead of only "45" being deleted, "345" is deleted, leaving "12" when "123" is expected.

Expected Behavior

Only the selection should be deleted after pressing delete.

Screenshots

Screen.Recording.2024-05-17.at.2.49.26.PM.mov