visual-space / visual-editor

Rich text editor for Flutter based on Delta format (Quill fork)
MIT License
283 stars 44 forks source link

Controller - Shift + Tab should not remove characters, only tabs #193

Closed DariusMuscalu closed 1 year ago

DariusMuscalu commented 1 year ago

Inside the method _removeTabCharacter() logic, when pressing shift + tab even though there aren't any tab char added. The logic is going to remove 4 chars before the charet. That's not what we intend. One possible solution to this is to verify if there are 4 whitespaces before the charet. If there are, apply the method logic, else do not.

Join on discord to get advice and help or follow us on YouTube Visual Coding to learn more about the architecture of Visual Editor and other Flutter apps.