typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

Focusing on window doesn't allow editing document #5921

Open hbsmith opened 6 months ago

hbsmith commented 6 months ago

Describe the bug In large files, when focused on another window (e.g. chrome), and then clicking back into the typora window, the typora window focuses, but typing does not show up in the document. Seems to

To Reproduce Steps to reproduce the behavior:

  1. Open a large typora document.
  2. Click on another window
  3. Click back into the typora window once (the typora window will be focused)
  4. Start typing (error manifests that nothing will appear/change in the typora document)

Expected behavior I expect that as soon as I focus on the typora window, typing will show up in the document.

Screenshots / Screencasts If applicable, add screenshots / screencasts to help explain your problem.

Sample Markdown File The error occurs consistently for me in my file with ~23k words. (143KB)

Desktop (please complete the following information):

Typora Version e.g: 1.7.6

Additional context Might be related to #5880 , as I have noticed a LOT of performance issues since upgrading to MacOS Sonoma. Large files are almost unusable which is a problem because all of my notes files are long typora files.

FlorentinGuth commented 2 weeks ago

I also have this issue (MacOs 14.5, Typora 1.9.3). ~I noticed that switching windows with Cmd-Tab does not have this issue, only focusing Typora with a mouse click leads to the "focused but unable to type" state.~ EDIT: not sure about that anymore, I've been unable to find something that consistently reproduces or avoids the bug.

abnerlee commented 2 weeks ago

Is there a caret when focus to Typora window?

FlorentinGuth commented 2 weeks ago

Yes, there is a caret, the window "looks" focused in all ways, except that it seems to ignore most keyboard inputs (I can save with Cmd-S, but cannot move the cursor nor type text). I've edited my above comment: I've tried finding steps that consistently reproduce the bug (or avoid it) but I've not been able to see which parameters matter. Clicking on another window then clicking on Typora's window again seems to be the most consistent way but it does not always happen.