mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
fixed pressing ENTER and ESC during IMP enter key input when there is a messagebox notifying user he inputted wrong key which resulted in re-appearance of the messagebox or leaving laptop mode
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9065 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+11
-9
@@ -268,20 +268,22 @@ void GetPlayerKeyBoardInputForIMPHomePage( void )
|
||||
{
|
||||
if( !HandleTextInput( &InputEvent ) && (InputEvent.usEvent == KEY_DOWN || InputEvent.usEvent == KEY_REPEAT || InputEvent.usEvent == KEY_UP ) )
|
||||
{
|
||||
switch( InputEvent.usParam )
|
||||
switch( InputEvent.usParam )
|
||||
{
|
||||
case (( ENTER ) ):
|
||||
if(( InputEvent.usEvent == KEY_UP ) )
|
||||
case ENTER:
|
||||
if(InputEvent.usEvent == KEY_DOWN)
|
||||
{
|
||||
// return hit, check to see if current player activation string is a valid one
|
||||
ProcessPlayerInputActivationString( );
|
||||
|
||||
fNewCharInActivationString = TRUE;
|
||||
ProcessPlayerInputActivationString();
|
||||
fNewCharInActivationString = TRUE;
|
||||
}
|
||||
break;
|
||||
case (( ESC )):
|
||||
HandleLapTopESCKey(); // WANNE: Fix for proper closing of the IMP laptop page
|
||||
LeaveLapTopScreen( );
|
||||
case ESC:
|
||||
if(InputEvent.usEvent == KEY_DOWN)
|
||||
{
|
||||
HandleLapTopESCKey(); // WANNE: Fix for proper closing of the IMP laptop page
|
||||
LeaveLapTopScreen();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if(InputEvent.usEvent == KEY_DOWN || InputEvent.usEvent == KEY_REPEAT )
|
||||
|
||||
Reference in New Issue
Block a user