[ScreenTextEntry] Make it so only the keyboard's Enter key can finish the screen. Should fix issues with buttons whose secondary function is MenuStart.

This commit is contained in:
AJ Kelly
2011-06-13 15:47:11 -05:00
parent dbecbacc72
commit cd9c8e97d2
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -258,7 +258,8 @@ void ScreenTextEntry::BackspaceInAnswer()
void ScreenTextEntry::MenuStart( const InputEventPlus &input )
{
if( input.type==IET_FIRST_PRESS )
// HACK: Only allow the screen to end on the Enter key.-aj
if( input.DeviceI == DeviceInput(DEVICE_KEYBOARD, KEY_ENTER) && input.type==IET_FIRST_PRESS )
End( false );
}