Fix first character being ignored on typed selection [stage]

This commit is contained in:
crschnick 2024-07-25 05:39:04 +00:00
parent f11b76fdff
commit 54f27a274f
2 changed files with 7 additions and 2 deletions

View file

@ -152,7 +152,7 @@ public final class BrowserFileListComp extends SimpleComp {
return;
} else {
lastFail.set(null);
typedSelection.set("");
typedSelection.set(typed);
table.getSelectionModel().clearSelection();
event.consume();
return;
@ -171,6 +171,11 @@ public final class BrowserFileListComp extends SimpleComp {
lastFail.set(null);
});
fileList.getFileSystemModel().getCurrentPath().addListener((observable, oldValue, newValue) -> {
typedSelection.set("");
lastFail.set(null);
});
table.addEventFilter(KeyEvent.KEY_PRESSED,event -> {
if (event.getCode() == KeyCode.ESCAPE) {
typedSelection.set("");

View file

@ -1 +1 @@
10.2-11
10.2-12