allow repeating backspace input

This commit is contained in:
Chris Danford
2006-05-04 09:29:11 +00:00
parent cb65313c83
commit c6fa5e9854
+6 -6
View File
@@ -169,13 +169,13 @@ void ScreenTextEntry::Input( const InputEventPlus &input )
if( IsTransitioning() )
return;
if( input.type == IET_FIRST_PRESS )
if( input.DeviceI == DeviceInput(DEVICE_KEYBOARD, KEY_BACK) && input.type != IET_RELEASE )
{
if( input.DeviceI == DeviceInput(DEVICE_KEYBOARD, KEY_BACK) )
{
BackspaceInAnswer();
}
else if( input.DeviceI.ToChar() >= ' ' )
BackspaceInAnswer();
}
else if( input.type == IET_FIRST_PRESS )
{
if( input.DeviceI.ToChar() >= ' ' )
{
bool bIsHoldingShift =
INPUTFILTER->IsBeingPressed( DeviceInput(input.DeviceI.device, KEY_RSHIFT)) ||