Fix using the shift key in the text widgets.

Commit abee16b16e caused the shift key to
insert a NUL character breaking the text input.

(Note keys like ALT and CTRL behaved the same.)
This commit is contained in:
Mark de Wever 2014-06-07 17:05:25 +02:00
parent 09122880e0
commit 8a9e9c7f16

View file

@ -281,11 +281,11 @@ void ttext_::handle_key_default(bool& handled,
{
DBG_GUI_E << LOG_SCOPE_HEADER << '\n';
// if(unicode >= 32 && unicode != 127) {
handled = true;
insert_char(unicode);
fire(event::NOTIFY_MODIFIED, *this, NULL);
// }
if(unicode.size() > 1 || unicode[0] != 0) {
handled = true;
insert_char(unicode);
fire(event::NOTIFY_MODIFIED, *this, NULL);
}
}
void ttext_::signal_handler_middle_button_click(const event::tevent event,