summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-10-21 01:24:36 +0000
committerIan C <ianc@noddybox.co.uk>2005-10-21 01:24:36 +0000
commit997d0f7502a95caae0a7b95b0356849a4a4e6bfb (patch)
treeed96dde784b1f35c70531188c1abc48f7e04b50f
parentb2d05b4d6b59a7ddc83b74e16da62c1b40718b55 (diff)
Fixed bug where escape would cancel the file selector even if the text field had focus
-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