summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--simplegui.mod/simplegui.bmx2
1 files changed, 1 insertions, 1 deletions
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