Skip to content

Commit

Permalink
Fix using the shift key in the text widgets.
Browse files Browse the repository at this point in the history
Commit abee16b caused the shift key to
insert a NUL character breaking the text input.

(Note keys like ALT and CTRL behaved the same.)
  • Loading branch information
mordante committed Jun 7, 2014
1 parent 0912288 commit 8a9e9c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gui/widgets/text.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 8a9e9c7

Please sign in to comment.