mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-09 17:23:51 +01:00
Set field_enter_after_edit for search fields
This commit is contained in:
parent
10799db4cf
commit
5a80084800
@ -170,6 +170,7 @@ function creative.register_tab(name, title, items)
|
|||||||
"tooltip[creative_prev;" .. esc(S("Previous page")) .. "]" ..
|
"tooltip[creative_prev;" .. esc(S("Previous page")) .. "]" ..
|
||||||
"tooltip[creative_next;" .. esc(S("Next page")) .. "]" ..
|
"tooltip[creative_next;" .. esc(S("Next page")) .. "]" ..
|
||||||
"listring[current_player;main]" ..
|
"listring[current_player;main]" ..
|
||||||
|
"field_enter_after_edit[creative_filter;true]" ..
|
||||||
"field_close_on_enter[creative_filter;false]" ..
|
"field_close_on_enter[creative_filter;false]" ..
|
||||||
"field[0.3,4.2;2.8,1.2;creative_filter;;" .. esc(inv.filter) .. "]" ..
|
"field[0.3,4.2;2.8,1.2;creative_filter;;" .. esc(inv.filter) .. "]" ..
|
||||||
"listring[detached:creative_" .. player_name .. ";main]" ..
|
"listring[detached:creative_" .. player_name .. ";main]" ..
|
||||||
|
@ -282,6 +282,7 @@ local function get_formspec(player)
|
|||||||
"tooltip[clear;"..esc(S("Reset")).."]"..
|
"tooltip[clear;"..esc(S("Reset")).."]"..
|
||||||
"tooltip[prev;"..esc(S("Previous page")).."]"..
|
"tooltip[prev;"..esc(S("Previous page")).."]"..
|
||||||
"tooltip[next;"..esc(S("Next page")).."]"..
|
"tooltip[next;"..esc(S("Next page")).."]"..
|
||||||
|
"field_enter_after_edit[filter;true]"..
|
||||||
"field_close_on_enter[filter;false]")
|
"field_close_on_enter[filter;false]")
|
||||||
|
|
||||||
if #data.items == 0 then
|
if #data.items == 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user