Skip to content

Commit 2b8dc2e

Browse files
committed
Skip focus check when requesting focus of current selected dockable node
1 parent ad3b933 commit 2b8dc2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/software/coley/bentofx/header/HeaderView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,9 @@ private ContentWrapper(@Nonnull Bento bento, @Nonnull HeaderView parentView) {
386386
otherParent.centerProperty().unbind();
387387
centerProperty().bind(dockableNode);
388388

389-
// If the new content is focusable, focus it.
389+
// Focus the new content
390390
Node center = getCenter();
391-
if (center != null && center.isFocusTraversable())
391+
if (center != null)
392392
center.requestFocus();
393393
} else {
394394
DockLayout parentLayout = getParentLayout();

0 commit comments

Comments
 (0)