diff options
author | Ian C <ianc@noddybox.co.uk> | 2005-10-21 01:24:36 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2005-10-21 01:24:36 +0000 |
commit | 997d0f7502a95caae0a7b95b0356849a4a4e6bfb (patch) | |
tree | ed96dde784b1f35c70531188c1abc48f7e04b50f /simplegui.mod/simplegui.bmx | |
parent | b2d05b4d6b59a7ddc83b74e16da62c1b40718b55 (diff) |
Fixed bug where escape would cancel the file selector even if the text field had focus
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 |