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