mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Fix first character being ignored on typed selection [stage]
This commit is contained in:
parent
f11b76fdff
commit
54f27a274f
2 changed files with 7 additions and 2 deletions
|
@ -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("");
|
||||
|
|
2
version
2
version
|
@ -1 +1 @@
|
|||
10.2-11
|
||||
10.2-12
|
||||
|
|
Loading…
Reference in a new issue