Comments lost when navigating to next/previous media
|Reported by:||ayleph||Owned by:|
A user on my site complained that his comments are lost when he presses the left or right arrow key after typing them. I checked the code in keyboard_navigation.js, and it appears to properly ignore the left/right arrow keys while a textbox has focus. But if you click outside of the textbox after typing a comment and then press left or right, the page changes and the comment is lost. Similarly, if you click the newer/older buttons after typing a comment, the comment is lost. Can we add some smarts to know that text has been entered, and then present the user with a "are you sure you want to leave" dialog when they navigate away?