This commit is contained in:
crschnick
2026-04-05 01:54:16 +00:00
parent f037cb61af
commit 2574a5403d
2 changed files with 18 additions and 2 deletions
@@ -58,7 +58,6 @@ public class RemoteDesktopDockComp extends SimpleRegionBuilder {
if (target == null || (target.getProperties().get("entry") != null &&
target.getProperties().get("entry").equals(w.getSelected().getValue()))) {
Platform.runLater(() -> {
content.requestFocus();
w.focus();
});
}
@@ -160,11 +159,19 @@ public class RemoteDesktopDockComp extends SimpleRegionBuilder {
}
if (entry != null && entry.isInternal()) {
stack.getChildren().add(map.get(entry));
Region r = map.get(entry);
stack.getChildren().add(r);
r.requestFocus();
}
});
});
stack.focusedProperty().subscribe(focus -> {
if (focus && stack.getChildren().size() > 1) {
stack.getChildren().getLast().requestFocus();
}
});
return stack;
}
}
@@ -49,3 +49,12 @@
-fx-border-width: 1 0 1 0;
-fx-border-color: -color-border-default;
}
.remote-desktop-dock .internal-content {
-fx-border-color: -color-border-default;
-fx-border-width: 1 1 1 1;
}
.remote-desktop-dock .internal-content:focused {
-fx-border-color: -color-accent-emphasis;
}