Fix: no blank lines sent to server, autorepeating works.
This commit is contained in:
@@ -244,10 +244,9 @@ void ScreenNetSelectMusic::Input( const DeviceInput& DeviceI, const InputEventTy
|
|||||||
if( m_In.IsTransitioning() || m_Out.IsTransitioning() )
|
if( m_In.IsTransitioning() || m_Out.IsTransitioning() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( type != IET_FIRST_PRESS )
|
if( (type != IET_FIRST_PRESS) && (type != IET_SLOW_REPEAT) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
bool bHoldingShift =
|
bool bHoldingShift =
|
||||||
INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD, KEY_LSHIFT)) ||
|
INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD, KEY_LSHIFT)) ||
|
||||||
INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD, KEY_RSHIFT));
|
INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD, KEY_RSHIFT));
|
||||||
@@ -263,6 +262,7 @@ void ScreenNetSelectMusic::Input( const DeviceInput& DeviceI, const InputEventTy
|
|||||||
case KEY_KP_ENTER:
|
case KEY_KP_ENTER:
|
||||||
if (!bHoldingCtrl)
|
if (!bHoldingCtrl)
|
||||||
{
|
{
|
||||||
|
if ( m_sTextInput != "" )
|
||||||
NSMAN->SendChat( m_sTextInput );
|
NSMAN->SendChat( m_sTextInput );
|
||||||
m_sTextInput="";
|
m_sTextInput="";
|
||||||
UpdateTextInput();
|
UpdateTextInput();
|
||||||
|
|||||||
Reference in New Issue
Block a user