fixed EditableWidget bug #819

This commit is contained in:
Thomas Jentzsch 2021-09-03 21:42:02 +02:00
parent 2af502a618
commit e11c4615e6
1 changed files with 2 additions and 0 deletions

View File

@ -246,6 +246,8 @@ bool EditableWidget::tryInsertChar(char c, int pos)
{
if(_filter(tolower(c)))
{
if(_selectSize < 0) // left to right selection
pos += _selectSize; // adjust to new position after removing selected text
killSelectedText();
if(!_maxLen || static_cast<int>(_editString.length()) < _maxLen)
{