From 997d0f7502a95caae0a7b95b0356849a4a4e6bfb Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 21 Oct 2005 01:24:36 +0000 Subject: Fixed bug where escape would cancel the file selector even if the text field had focus --- simplegui.mod/simplegui.bmx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplegui.mod/simplegui.bmx b/simplegui.mod/simplegui.bmx index 909209b..33958e0 100644 --- a/simplegui.mod/simplegui.bmx +++ b/simplegui.mod/simplegui.bmx @@ -1474,7 +1474,7 @@ Function GUIFileSelect:String(title:String, file:String, save:Int, i:TImage=Null Return ret EndIf - If click=cancel Or KeyHit(KEY_ESCAPE) + If click=cancel Or (KeyHit(KEY_ESCAPE) And gui.GetFocus()=Null) ChangeDir(oldpwd) FlushKeys() Return Null -- cgit v1.2.3