-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double click on entry at "Check integrity" focus bug fixed #12022
base: main
Are you sure you want to change the base?
Conversation
…); to make sure that focus goes to the field even when dialog window is opened
@koppor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please re-iterate on the issue description: #11997
Here, especially for you, another description.
-
Start JabRef
-
Open
chocolate.bib
- you find it at https://github.com/JabRef/jabref/blob/main/src/test/resources/testbib/Chocolate.bib -
Seelct entry "Cocoa and Cardiovascular Health"
-
Select tab "General" in Entry editor
-
Go to Menu "Quality"
-
Click on "Check integrity"
-
See that nothing happens
In Step 9, the tab "Requried fiels" and the field "Citatoinkey" should be focused.
Thank you for your feedback! Will do my best! |
@koppor
|
It should focus on the field that is reported in the integrity check |
Thank you for your response! I'm pretty new to this project. Would it be possible to share a little detailed description? If not, I will do my best to figure all out myself. |
@Siedlerchr Please let me know if I misunderstand you! Thank you! |
That is indeed correct, however, in my tests jumping to another tab only works sometimes:
However, if I now select the general Tab of an entry, I am able to jump to it/again to it Please check why the tab needs to have been selected first |
Oh now I understand where you are getting at! Thank you! |
Description
This PR aims on a bug fix, when user was double clicking on entry at
Check Integrity
, entry was focused, but not a field inentry editor
.Changes
In
src/main/java/org/jabref/gui/entryeditor/EntryEditor.java
two lines of code were added tosetFocusToField()
getScene().getWindow().requestFocus();
This line explicitly brings focus back to the main window containing the Entry Editor. It fixes a field focus bug.
Screenshot of changed UI
As you can see on screenshot bug is fixed!
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)