Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Formspecs: Add text field enter key event, allow fields to disable form close on enter #4417
This PR can make the creative inventory search box search on enter press
If enter is pressed with the focus in a text field, fields are submitted to the server.
quit = true key_enter = true key_enter_field = "nameoftextfield"
if the text field doesn't close the form on enter press, then:
key_enter = true key_enter_field = "nameoftextfield"
This is how you set a field to make it not close on enter press:
the default is to close on enter press, so the following two elements are the same:
referenced this pull request
Aug 7, 2016
After investigation, simple field supports a forth param due to this commit by RBA: 04fbf47#diff-65f34680878a6bd86f3a59ebc0c06c6dL1065