Resolution to Issue #21 - Search updated in Dictionary Controller
Search now only searches the language selected for sort, even after a language switch while searching.
This commit is contained in:
parent
b515c12bf8
commit
659ddba130
1 changed files with 3 additions and 1 deletions
|
@ -86,7 +86,9 @@ public class DictionaryController extends SharedCodeController {
|
||||||
isSortedByEnglish = true;
|
isSortedByEnglish = true;
|
||||||
}
|
}
|
||||||
table.sort();
|
table.sort();
|
||||||
|
searchBox.textProperty().setValue(searchBox.textProperty().getValue() + " ");
|
||||||
|
searchBox.textProperty().setValue(searchBox.textProperty().getValue().trim());
|
||||||
|
searchBox.positionCaret(searchBox.textProperty().getValue().length());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in a new issue