reddit-moderator-toolbox-legacy icon indicating copy to clipboard operation
reddit-moderator-toolbox-legacy copied to clipboard

Make forms in popups and the likes submit on enter.

Open syncretic opened this issue 11 years ago • 5 comments

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

syncretic avatar Jul 19 '14 00:07 syncretic

I guess we could make it do stuff on enter. Closing it... maybe.

creesch avatar Jul 19 '14 13:07 creesch

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.

Dakta avatar Nov 07 '14 00:11 Dakta

That would work I suppose :)

creesch avatar Nov 07 '14 11:11 creesch

We have a lot of places where we need to do that, actually. Pretty much everywhere we have inputs. :(

Dakta avatar Nov 07 '14 23:11 Dakta

Hrm true, however changing the functions shouldn't be to much of an hassle. 3.1 should be possible ;)

creesch avatar Nov 08 '14 09:11 creesch