AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] Cannot backspace and delete contents in Doc

Open ChenTaHung opened this issue 3 years ago • 3 comments

Describe the bug I can't delete the contents using del button or Backspace in Doc. Keep typing and enter to jump to the next line both work fine. Only when using a Doc file, the backspace and del is not working. The only way to revise the content for my situation is to select and highlight the words and replace them directly.

To Reproduce Steps to reproduce the behavior:

  1. Click New page
  2. add a page and select Doc
  3. type any word and cannot delete the contents.

Expected behavior Adding a Grid page works perfectly fine. I can use backspace to remove the words or use del button to delete the letters. But not for the Doc page.

Desktop (please complete the following information):

  • OS: MacOS Monterey
  • Version: 12.3.1
  • Chip: Apple M1 Pro

Additional context I followed the instruction on the official documentation to install Appflowy using $ brew install appflowy.

Besides the backspace and del issue, command + A to select all doesn't work in Doc page too.

AppFlowy version : 0.0.4

ChenTaHung avatar Aug 23 '22 12:08 ChenTaHung

Can You provide a small video of the error that you are facing because in y machine it is working fine? (random text) image (cleard some texts using backspace) image

IMPranshu avatar Aug 23 '22 17:08 IMPranshu

https://user-images.githubusercontent.com/49839507/186301302-d3bb847b-43a9-4179-ba8d-ba143d73355a.mp4

In the video, we can see that the backspace and del work well when using a keyboard test website, but not in AppFlowy. The only way to delete the words is to select the words and replace them by typing another word. But I found something that might be the reason is that, when I rebooted my computer, AppFlowy works fine when I only type English. However, when I started to type Chinese (in Taiwan we mostly use ㄅㄆㄇㄈ...etc to spell Chinese), the issue jumped out. I think the problem might be the ㄅㄆㄇㄈ... character used to spell Chinese.

Maybe you need all characters for testing, given below ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄧㄨㄩㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦ

ChenTaHung avatar Aug 24 '22 02:08 ChenTaHung

@IMPranshu @ChenTaHung thanks for providing more details. This will be fixed in v0.0.7 This is a known issue in flutter_quill, a third-party package we're using. We're switching to our in-house editor, appflowy_editor and will replace flutter_quill in the upcoming releases. appflowy_editor doesn't have this issue.

annieappflowy avatar Aug 24 '22 03:08 annieappflowy

Have you guys checked out our latest release? Is this issue fixed? @LucasXu0

annieappflowy avatar Nov 09 '22 03:11 annieappflowy

@annieappflowy Deleting the characters works fine on v0.0.6.2, but it comes out new issues.

It cannot press capslock to switch language, and Mandarin typing issues. Do I need to open a new issue?

ChenTaHung avatar Nov 12 '22 08:11 ChenTaHung

Yes, please. Thank you @ChenTaHung

annieappflowy avatar Nov 12 '22 08:11 annieappflowy