w_textbox: Prevent the use of RETURN/ENTER; thanks Xylemon

This commit is contained in:
Marco Cawthorne 2019-02-20 16:21:25 +01:00
parent 8d4a3830fe
commit f008fd447c
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
break;
case K_ENTER:
break;
default:
if (m_flags & TEXTBOX_FOCUS) {
m_text = sprintf("%s%s", m_text, chr2str(y));