removed enter from editbox to be useable outside

This commit is contained in:
vurtun 2015-11-11 12:01:13 +01:00
parent cff5fec1d6
commit f864d33b5f

View File

@ -4710,8 +4710,6 @@ zr_widget_editbox(struct zr_command_buffer *out, struct zr_rect r,
if (zr_input_is_key_pressed(in,ZR_KEY_DEL) ||
zr_input_is_key_pressed(in,ZR_KEY_BACKSPACE))
zr_edit_box_remove(box);
if (zr_input_is_key_pressed(in, ZR_KEY_ENTER))
box->active = zr_false;
if (in->keyboard.text_len) {
if (diff && box->cursor != box->glyphes) {
/* replace text selection */