Since return/enter key was remapped to enable chat mode, we didn't remove this keypress from the input stream when we would save games. This resulted in the chat mode being enabled when a user saves their game.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6132 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2008-10-11 19:17:59 +00:00
parent 6a70a7750d
commit e4a10b71bc
1 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,7 @@
#include "lib/framework/frame.h" #include "lib/framework/frame.h"
#include "lib/framework/strres.h" #include "lib/framework/strres.h"
#include "lib/framework/input.h" #include "lib/framework/input.h"
#include "lib/framework/input.h"
#include "lib/widget/button.h" #include "lib/widget/button.h"
#include "lib/widget/editbox.h" #include "lib/widget/editbox.h"
#include "lib/widget/widget.h" #include "lib/widget/widget.h"
@ -359,7 +360,8 @@ BOOL closeLoadSave(void)
} }
widgReleaseScreen(psRequestScreen); widgReleaseScreen(psRequestScreen);
// need to "eat" up the return key so it don't pass back to game.
inputLooseFocus();
return true; return true;
} }