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:
law39 2020-04-30 17:09:08 +01:00
parent b515c12bf8
commit 659ddba130

View file

@ -86,7 +86,9 @@ public class DictionaryController extends SharedCodeController {
isSortedByEnglish = true;
}
table.sort();
searchBox.textProperty().setValue(searchBox.textProperty().getValue() + " ");
searchBox.textProperty().setValue(searchBox.textProperty().getValue().trim());
searchBox.positionCaret(searchBox.textProperty().getValue().length());
}
/**