mirror of https://github.com/buggins/dlangui.git
Added search string in StringListWidget when KeyAction is Text
This commit is contained in:
parent
89c8191d45
commit
17c2f93cb6
|
@ -1452,6 +1452,7 @@ class StringListWidget : ListWidget {
|
||||||
|
|
||||||
if (timePassed > 0.5) _searchString = ""d;
|
if (timePassed > 0.5) _searchString = ""d;
|
||||||
_searchString ~= to!dchar(event.text.toUTF8);
|
_searchString ~= to!dchar(event.text.toUTF8);
|
||||||
|
_stopWatch.reset;
|
||||||
|
|
||||||
if ( selectClosestMatch(_searchString) ) {
|
if ( selectClosestMatch(_searchString) ) {
|
||||||
invalidate();
|
invalidate();
|
||||||
|
|
Loading…
Reference in New Issue