allow repeating backspace input

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