2024-09-14 12:45:42 +02:00
|
|
|
extends Panel
|
2024-07-20 11:20:18 +02:00
|
|
|
|
|
|
|
func _unhandled_key_input(event:InputEvent):
|
|
|
|
var key_event:InputEventKey = event as InputEventKey
|
|
|
|
if visible and key_event.pressed and key_event.get_keycode_with_modifiers() == KEY_ESCAPE:
|
|
|
|
get_viewport().set_input_as_handled()
|
|
|
|
hide()
|