feat: allow exiting a poll with ESCAPE

master
Dominique Merle 4 years ago
parent 57b9bac4a2
commit 3e4605d07c

@ -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

Loading…
Cancel
Save