mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-29 16:11:03 +00:00
Fix first character being ignored on typed selection [stage]
This commit is contained in:
@@ -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("");
|
||||
|
||||
Reference in New Issue
Block a user