reddit-moderator-toolbox-legacy
reddit-moderator-toolbox-legacy copied to clipboard
Make forms in popups and the likes submit on enter.
When you enter the new user flair and then hit the enter key, it doesn't do anything. You have to click on the "save flair" button. I would like to just be able to hit the enter key if that is possible. Also, after you click the "save flair" button, the box doesn't go away. I would like the box to go away after I click the "save flair" button (or after I hit the enter key). /u/agentlame told me to open a new issue about it :D
I guess we could make it do stuff on enter. Closing it... maybe.
The fix should be to just wrap the stuff in a <form> and handle the form submit instead of button click... That'd make our code a big cleaner too.
That would work I suppose :)
We have a lot of places where we need to do that, actually. Pretty much everywhere we have inputs. :(
Hrm true, however changing the functions shouldn't be to much of an hassle. 3.1 should be possible ;)