mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix gui.show_input_dialog key:escape reaction
This commit is contained in:
parent
43fa181398
commit
1644751b1a
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ function gui.show_input_dialog(text, actual_callback, validator, confirm_text)
|
|||
callback=callback,
|
||||
validator=validator or function() return #text > 0 end
|
||||
})
|
||||
input.add_callback("key:escape", callback, gui.root[id])
|
||||
input.add_callback("key:escape", function() gui.root[id]:destruct() end, gui.root[id])
|
||||
input.add_callback("key:enter", callback, gui.root[id])
|
||||
gui.root[id.."_input"].focused = true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue