Set field_enter_after_edit for search fields

This commit is contained in:
Gregor Parzefall 2024-02-24 14:37:47 +01:00 committed by Lars Müller
parent 10799db4cf
commit 5a80084800
2 changed files with 2 additions and 0 deletions

View File

@ -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]" ..

View File

@ -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