w_textbox: Prevent the use of RETURN/ENTER; thanks Xylemon
This commit is contained in:
parent
8d4a3830fe
commit
f008fd447c
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue