1) Add the following prototype in data phase:
Code: Select all
data:extend({
{
type = "custom-input",
name = "things-linked-undo",
key_sequence = "",
linked_game_control = "undo",
},
})
Code: Select all
script.on_event("things-linked-undo", function() game.print("event fired") end)
4) Push undo keybind (eg CTRL+Z) to undo the second entry
5) Push undo GUI button to undo the first entry
Actual result:
Pushing CTRL+Z will result in the event being fired. Pushing the undo GUI button will not fire the event.
Expected result:
Since in both cases the "undo" game action was triggered, the event should have fired in both cases.