mirror of https://github.com/stella-emu/stella.git
fixed EditableWidget bug #819
This commit is contained in:
parent
2fa60f0bca
commit
dbeeab064a
|
@ -246,6 +246,8 @@ bool EditableWidget::tryInsertChar(char c, int pos)
|
||||||
{
|
{
|
||||||
if(_filter(tolower(c)))
|
if(_filter(tolower(c)))
|
||||||
{
|
{
|
||||||
|
if(_selectSize < 0) // left to right selection
|
||||||
|
pos += _selectSize; // adjust to new position after removing selected text
|
||||||
killSelectedText();
|
killSelectedText();
|
||||||
if(!_maxLen || static_cast<int>(_editString.length()) < _maxLen)
|
if(!_maxLen || static_cast<int>(_editString.length()) < _maxLen)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue