You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request fixes an issue where pressing the Escape key while a combo box or drop-down list popup (such as a CheckComboBox) is open within a dialog causes the entire dialog (e.g. JabRef Preferences) to close immediately instead of closing only the drop-down menu. We updated event filtering and key handlers in BaseDialog, FXDialog, and PreferencesDialogView to detect active popups and consume the Escape key event when a drop-down menu is showing.
Under "Required and optional fields", click on the Field property drop-down menu (CheckComboBox) so the list expands.
Press Escape.
Observe that only the drop-down popup list closes, while the Preferences dialog stays open.
Press Escape a second time to verify that the Preferences dialog closes as expected.
Screenshots
After Escape
AI usage
AI tool: Google Antigravity
Model ID: Gemini 3.6 Flash
Disclosure: AI was used for pair-programming assistance to analyze JavaFX key event propagation and refactor the popup state logic across dialogs. I have reviewed, understood, and take full ownership of all AI-assisted code changes.
Checklist
I own the copyright of the code submitted and I license it under the MIT license
If AI tools were used, I disclosed them in the "AI usage" section and reviewed, understood, and take full ownership of all AI-generated code
I manually tested my changes in running JabRef (always required)
I added screenshots in the PR description (if change is visible to the user)
[/] I added JUnit tests for changes (if applicable)
I described the change in CHANGELOG.md in a way that can be understood by the average user (if change is visible to the user)
PR Description
This pull request fixes an issue where pressing the Escape key while a combo box or drop-down list popup (such as a
CheckComboBox) is open within a dialog causes the entire dialog (e.g. JabRef Preferences) to close immediately instead of closing only the drop-down menu. We updated event filtering and key handlers inBaseDialog,FXDialog, andPreferencesDialogViewto detect active popups and consume the Escape key event when a drop-down menu is showing.Related issues and pull requests
Closes #16596
Steps to test
./gradlew :jabgui:run).CheckComboBox) so the list expands.Escape.Escapea second time to verify that the Preferences dialog closes as expected.Screenshots
After
EscapeAI usage
Checklist