Skip to content

Use JComponent.WHEN_IN_FOCUSED_WINDOW for the viz input map - #92

Merged
emichael merged 1 commit into
masterfrom
jrw/fix-viz-keybinding-focus
Nov 1, 2026
Merged

emichael merged 1 commit into
masterfrom
jrw/fix-viz-keybinding-focus

Conversation

@wilcoxjay

Copy link
Copy Markdown
Collaborator

Previously, we used JComponent.WHEN_FOCUSED, which meant the keys were mapped only when the root pane had focus. See https://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html#maps for more information.

Fixes #75

Previously, we used JComponent.WHEN_FOCUSED, which meant the
keys were mapped only when the root pane had focus. See
https://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html#maps
for more information.

Fixes #75
@emichael

emichael commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Weirdly, I can't reproduce the issue anymore, but this does look like the better option! Thanks!

@emichael
emichael merged commit 5534e9f into master Nov 1, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Visualizer n and p keybindings stop working after you click on state trees in nodes

2 participants