mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 05:42:32 +00:00
Don't add dead chars if the entry field is full
This commit is contained in:
parent
f4683f385d
commit
acdd9c3fed
@ -324,7 +324,8 @@ bool Entry::onProcessMessage(Message* msg)
|
|||||||
|
|
||||||
// Select dead-key
|
// Select dead-key
|
||||||
if (keymsg->isDeadKey()) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user