diff options
Diffstat (limited to 'simplegui.mod/simplegui.bmx')
-rw-r--r-- | simplegui.mod/simplegui.bmx | 2 |
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 |