[Enter] key on formspecs

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

[Enter] key on formspecs

by Wuzzy » Thu Jun 05, 2014 14:40

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.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Enter] key on formspecs

by Krock » Thu Jun 05, 2014 14:56

Noticed this too, the formspe shouldn't close when hitting ENTER, it better should submit the whole thing like a button.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

Re: [Enter] key on formspecs

by BlockMen » Thu Jun 05, 2014 16:03

It's possible to use it. I do it on my crafting mod, which has a search function for creative :P
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 6 guests

cron