spsdco / notes

Awesome note taking.
MIT License
559 stars 54 forks source link

Solves the problem of viewport change after pasting text #191

Closed nitishch closed 9 years ago

nitishch commented 9 years ago

This solves #190. But what was the original reason to put the line @psuedoinput.val("").focus()?

Also, there was a different problem. When you press <Enter>, in editor, the \n character was added but the viewport didn't change. I think this was due to the fact that when <Enter> is pressed, the handler prevents default actions. So atom-shell doesn't know about this event and doesn't change the viewport. So I commented this line too.

Closes #190, #106.

zackp30 commented 9 years ago

Thanks!