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:
parent
09122880e0
commit
8a9e9c7f16
1 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue