From c6fa5e98549e2714545304c52d48492ab688c44a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 4 May 2006 09:29:11 +0000 Subject: [PATCH] allow repeating backspace input --- stepmania/src/ScreenTextEntry.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/ScreenTextEntry.cpp b/stepmania/src/ScreenTextEntry.cpp index e4360c77dd..ac448f0703 100644 --- a/stepmania/src/ScreenTextEntry.cpp +++ b/stepmania/src/ScreenTextEntry.cpp @@ -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)) ||