diff --git a/addons/majority_judgment/nodes/MajorityJudgmentLinearResultsControl.gd b/addons/majority_judgment/nodes/MajorityJudgmentLinearResultsControl.gd index bc8c849..2e7bd16 100644 --- a/addons/majority_judgment/nodes/MajorityJudgmentLinearResultsControl.gd +++ b/addons/majority_judgment/nodes/MajorityJudgmentLinearResultsControl.gd @@ -18,6 +18,19 @@ onready var ProfilesContainer = find_node("ProfilesContainer", true) var provider:MajorityJudgmentAbstractJudgmentsProvider +func _input(_event): + if Input.is_action_just_pressed("ui_cancel"): + exit_poll() + + +func exit_poll(): + # Check if we want to save or discard? + # … + # Close things up +# stop_providers() + App.go_to_main_menu() + + func get_poll() -> MajorityJudgmentPoll: return poll