From a9ee0360fadae2b5a542d6124fb87518464c1585 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 6 May 2006 04:40:36 +0000 Subject: [PATCH] don't backspace on IET_LEVEL_CHANGED --- stepmania/src/ScreenTextEntry.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ScreenTextEntry.cpp b/stepmania/src/ScreenTextEntry.cpp index ac448f0703..6c5ade3f84 100644 --- a/stepmania/src/ScreenTextEntry.cpp +++ b/stepmania/src/ScreenTextEntry.cpp @@ -169,9 +169,16 @@ void ScreenTextEntry::Input( const InputEventPlus &input ) if( IsTransitioning() ) return; - if( input.DeviceI == DeviceInput(DEVICE_KEYBOARD, KEY_BACK) && input.type != IET_RELEASE ) + if( input.DeviceI == DeviceInput(DEVICE_KEYBOARD, KEY_BACK) ) { - BackspaceInAnswer(); + switch( input.type ) + { + case IET_FIRST_PRESS: + case IET_SLOW_REPEAT: + case IET_FAST_REPEAT: + BackspaceInAnswer(); + break; + } } else if( input.type == IET_FIRST_PRESS ) {