trestletech / todotxtpp

NodeJS Application with Dropbox Integration for Managing a Todo.txt File
MIT License
77 stars 8 forks source link

Keyboardless interactions won't auto-save #23

Open trestletech opened 9 years ago

trestletech commented 9 years ago

If you don't use the keyboard to adjust the editor (for instance, by selecting text, right clicking, and then "cutting" or "pasting") we wouldn't detect that the text has changed and wouldn't try to auto-save.

This is because it's too hard to distinguish remote file load events from user changes if we're listening to the editor's change event. It's way easier to listen for keyboard events. The quick hack would be to listen for mouse events, too, I suppose.