Skip to content

Commit

Permalink
Set field_enter_after_edit for search fields
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp authored and appgurueu committed Feb 26, 2024
1 parent 10799db commit 5a80084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mods/creative/inventory.lua
Expand Up @@ -170,6 +170,7 @@ function creative.register_tab(name, title, items)
"tooltip[creative_prev;" .. esc(S("Previous page")) .. "]" ..
"tooltip[creative_next;" .. esc(S("Next page")) .. "]" ..
"listring[current_player;main]" ..
"field_enter_after_edit[creative_filter;true]" ..
"field_close_on_enter[creative_filter;false]" ..
"field[0.3,4.2;2.8,1.2;creative_filter;;" .. esc(inv.filter) .. "]" ..
"listring[detached:creative_" .. player_name .. ";main]" ..
Expand Down
1 change: 1 addition & 0 deletions mods/mtg_craftguide/init.lua
Expand Up @@ -282,6 +282,7 @@ local function get_formspec(player)
"tooltip[clear;"..esc(S("Reset")).."]"..
"tooltip[prev;"..esc(S("Previous page")).."]"..
"tooltip[next;"..esc(S("Next page")).."]"..
"field_enter_after_edit[filter;true]"..
"field_close_on_enter[filter;false]")

if #data.items == 0 then
Expand Down

0 comments on commit 5a80084

Please sign in to comment.