14.22 on_text_changed fires multi with highlight/delete
Posted: Mon Apr 17, 2017 9:20 pm
Not sure if a bug/intended/or already reported but
on_gui_text_changed fires multiple times when deleting higlighted regions
Select this line and paste into the textbox with ctrl-v
event fires once
highlight entire line in the textbox and press delete
event fires for each character removed
on_gui_text_changed fires multiple times when deleting higlighted regions
Code: Select all
/c
game.player.gui.center.add{type="textfield", name = "argh"}
script.on_event(defines.events.on_gui_text_changed, function(event) game.print("string = "..game.players[event.player_index].gui.center.argh.text) end)
event fires once
highlight entire line in the textbox and press delete
event fires for each character removed