Don't add dead chars if the entry field is full

This commit is contained in:
David Capello 2016-11-29 11:08:29 -03:00
parent f4683f385d
commit acdd9c3fed

View File

@ -324,7 +324,8 @@ bool Entry::onProcessMessage(Message* msg)
// Select dead-key
if (keymsg->isDeadKey()) {
selectText(m_caret-1, m_caret);
if (base::from_utf8(text()).size() < m_maxsize)
selectText(m_caret-1, m_caret);
}
return true;
}