simplify
This commit is contained in:
@@ -230,10 +230,9 @@ void ScreenTextEntry::Input( const InputEventPlus &input )
|
|||||||
bool bIsHoldingShift =
|
bool bIsHoldingShift =
|
||||||
INPUTFILTER->IsBeingPressed( DeviceInput(input.DeviceI.device, KEY_RSHIFT)) ||
|
INPUTFILTER->IsBeingPressed( DeviceInput(input.DeviceI.device, KEY_RSHIFT)) ||
|
||||||
INPUTFILTER->IsBeingPressed( DeviceInput(input.DeviceI.device, KEY_LSHIFT));
|
INPUTFILTER->IsBeingPressed( DeviceInput(input.DeviceI.device, KEY_LSHIFT));
|
||||||
|
char c = (char)toupper( input.DeviceI.ToChar() );
|
||||||
if( bIsHoldingShift )
|
if( bIsHoldingShift )
|
||||||
{
|
{
|
||||||
char c = (char)toupper( input.DeviceI.ToChar() );
|
|
||||||
|
|
||||||
switch( c )
|
switch( c )
|
||||||
{
|
{
|
||||||
case '`': c='~'; break;
|
case '`': c='~'; break;
|
||||||
@@ -258,13 +257,9 @@ void ScreenTextEntry::Input( const InputEventPlus &input )
|
|||||||
case '.': c='>'; break;
|
case '.': c='>'; break;
|
||||||
case '/': c='?'; break;
|
case '/': c='?'; break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
AppendToAnswer( ssprintf( "%c", c ) );
|
AppendToAnswer( ssprintf( "%c", c ) );
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
AppendToAnswer( ssprintf( "%c", input.DeviceI.ToChar() ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
// If the user wishes to select text in traditional way, start should finish text entry
|
// If the user wishes to select text in traditional way, start should finish text entry
|
||||||
m_iFocusY = KEYBOARD_ROW_SPECIAL;
|
m_iFocusY = KEYBOARD_ROW_SPECIAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user