mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +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 ) )
|
if( !HandleTextInput( &InputEvent ) && (InputEvent.usEvent == KEY_DOWN || InputEvent.usEvent == KEY_REPEAT || InputEvent.usEvent == KEY_UP ) )
|
||||||
{
|
{
|
||||||
switch( InputEvent.usParam )
|
switch( InputEvent.usParam )
|
||||||
{
|
{
|
||||||
case (( ENTER ) ):
|
case ENTER:
|
||||||
if(( InputEvent.usEvent == KEY_UP ) )
|
if(InputEvent.usEvent == KEY_DOWN)
|
||||||
{
|
{
|
||||||
// return hit, check to see if current player activation string is a valid one
|
// return hit, check to see if current player activation string is a valid one
|
||||||
ProcessPlayerInputActivationString( );
|
ProcessPlayerInputActivationString();
|
||||||
|
fNewCharInActivationString = TRUE;
|
||||||
fNewCharInActivationString = TRUE;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case (( ESC )):
|
case ESC:
|
||||||
HandleLapTopESCKey(); // WANNE: Fix for proper closing of the IMP laptop page
|
if(InputEvent.usEvent == KEY_DOWN)
|
||||||
LeaveLapTopScreen( );
|
{
|
||||||
|
HandleLapTopESCKey(); // WANNE: Fix for proper closing of the IMP laptop page
|
||||||
|
LeaveLapTopScreen();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if(InputEvent.usEvent == KEY_DOWN || InputEvent.usEvent == KEY_REPEAT )
|
if(InputEvent.usEvent == KEY_DOWN || InputEvent.usEvent == KEY_REPEAT )
|
||||||
|
|||||||
Reference in New Issue
Block a user