Not sure what happened, but this stopped happening today - I can't replicate the issue, but as far as I can tell, there were no updates. There may be some edge condition here I am unaware of. Will keep my eyes open.
Well that didn't take long, but I am still not sure why this is happening - I started editing a new document and this issue started happening, but only for a brief moment. After toggling back and forth between an alternate application and back to Boostnote a couple of times, the issue resolved itself.
Last observation for this issue - it seems some pattern of key strokes may cause this issue somehow. I noticed when typing while the document is locked in edit mode, it will automatically toggle the view mode right before the lock icon stops working.
I realize this is a hard-to-follow issue, so I am doing what I can to get relevant info, but I think the best thing here would be a video of the issue. However, I have not been able to capture the issue in a recording since it's so inconsistent.
Figured it out. The issue is that the hotkey for 'Toggle Editor Mode` [CMD + M] is somehow messed up.
Replication Steps
I am certain my keyboard is not broken and I have verified that the hotkey is still configured to be CMD+M, but that doesn't work - only pressing the "M" alone key will toggle the editor.
An additional little "quirk" about this issue - it never happens when typing capital "M" - only lower-case "m". It seems Boostnote is detecting that the command key is always being pressed down when it's not.
(Last comment, I promise) Updated the title to reflect the issue - I think it's simply a matter of the app thinking the CMD key is constantly being held down. This is why the "edit" lock issue also happens. This issue will presumably affect any hotkey that requires the use of the CMD key.
I'm also seeing this behavior, pressing M toggles the editor mode as you've described.
Same here, typing a m in the editor toggles the editor mode.
Same here, it is a bit annoying.
@zhuzelong as a rough "workaround" you can just delete the text from the key bindings fields. (You can't delete the keybindings themselves, but you can just delete the text and exit the settings - should auto save)
It might not auto-save now that I think about it. I tried saving and got an error, but after I exited the settings menu, the issue stopped (and the keybinding no longer worked, so I assume it either auto-saved, or the error was for something else I didn't notice)
It's not perfect, but it's made this issue much less annoying :)
I can't type any notes now because of this behavior... unfortunately, M is a very common letter...
I did the fix above. It does not auto save and when I click save, it says "errors occur!", so I just x'ed out. And now the issue seems to be fixed on my current note.
It seems to be a bug of electron v1.8.6. We have to use Command rather than Cmd to avoid this bug.
I'm going to release a temporary fix soon.
Sorry, I misunderstood. It seems to be a bug of Mousetrap.
Most helpful comment
Same here, typing a
min the editor toggles the editor mode.