From 547dad9e66f30025625b4e98dc4956e516a42139 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 18 Sep 2021 14:52:15 -0600 Subject: [PATCH] NAT playground disable textinput callback immediately on enter --- projects/nat-flixel-playground/source/PlayState.kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/nat-flixel-playground/source/PlayState.kiss b/projects/nat-flixel-playground/source/PlayState.kiss index fc8e5d9c..5ea65f94 100644 --- a/projects/nat-flixel-playground/source/PlayState.kiss +++ b/projects/nat-flixel-playground/source/PlayState.kiss @@ -28,7 +28,6 @@ (when (and !textInput FlxG.keys.justPressed.ENTER) (typeCommand)) (when (and textInput !textInput.alive) - (set textInput.callback null) (set textInput null)) // Press ESCAPE to clear the UI and cancel any input @@ -91,6 +90,7 @@ ->:Void [text action] (case [text action] ([text FlxInputText.ENTER_ACTION] + (set textInput.callback null) (hideUI textInput) // This part is hacky... (set lastUI textInputLabel)