w_textbox: Prevent the use of RETURN/ENTER; thanks Xylemon
This commit is contained in:
parent
8d4a3830fe
commit
f008fd447c
|
@ -70,6 +70,8 @@ void CTextBox::Input(float type, float x, float y, float devid)
|
||||||
m_text = substring(m_text, 0, strlen(m_text) - 1);
|
m_text = substring(m_text, 0, strlen(m_text) - 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case K_ENTER:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (m_flags & TEXTBOX_FOCUS) {
|
if (m_flags & TEXTBOX_FOCUS) {
|
||||||
m_text = sprintf("%s%s", m_text, chr2str(y));
|
m_text = sprintf("%s%s", m_text, chr2str(y));
|
||||||
|
|
Loading…
Reference in New Issue