Page 1 of 1

[Enter] key on formspecs

PostPosted: Thu Jun 05, 2014 14:40
by Wuzzy
Hi! I want to create a formspec which has 3 fields (for text) and one exit button. I noticed this: When I press the [Enter] key, the formspec closes without submitting. I have to explicitly click on the button to have the fields submited.

I find this very counter-intuitive. Does Minetest provide a method to change this behaviour?
I use version 0.4.9.

Re: [Enter] key on formspecs

PostPosted: Thu Jun 05, 2014 14:56
by Krock
Noticed this too, the formspe shouldn't close when hitting ENTER, it better should submit the whole thing like a button.

Re: [Enter] key on formspecs

PostPosted: Thu Jun 05, 2014 16:03
by BlockMen
It's possible to use it. I do it on my crafting mod, which has a search function for creative :P