-
-
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
Improve focus of the maintable after a sidepane gets closed #1741
Conversation
@@ -104,6 +104,8 @@ public synchronized void hide(String name) { | |||
LOGGER.warn("Side pane component '" + name + "' unknown."); | |||
} else { | |||
hideComponent(sidePaneComponent); | |||
frame.getCurrentBasePanel().getMainTable().setSelected(frame.getCurrentBasePanel().getMainTable().getSelectedRow()); | |||
frame.getCurrentBasePanel().getMainTable().requestFocus(); |
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 extract frame.getCurrentBasePanel().getMainTable()
to new local variable.
Please add a Changelog entry |
I put your feedback into my code. |
@@ -12,6 +12,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `# | |||
## [Unreleased] | |||
|
|||
### Changed | |||
- Improve focus of the maintable after a sidepane gets closed |
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 move it to the end of the Fixed section and describe the bug
70e33b9
to
413313a
Compare
* master: Fix imports Rename NewFileDialog -> FileDialog Also cancel duplicate finder workflow on close button Removed/moved preferences which are constants implements JabRef#1767: Add Help Button to access new help page Fixed BibTeXMLImporter Set more default file filters in dialogs JabRef#1763 Resolve crossrefs and strings in main table (JabRef#1644) Rewrite bibtexml importer with JAXB parser (JabRef#1666) Moved a few more initialization to GUIGlobals.init() (JabRef#1756) Added program to generate a table of all characters and fixed some characters (JabRef#1766) Improve focus of the maintable after a sidepane gets closed (JabRef#1741) Table row height adjusts on Windows as the font scales with the menu (JabRef#1623) Added more characters to converters (JabRef#1761)
Follow up of #1525
The minimum quality is achieved: The new system is better then the old one.
Some issues remain, which i try to improve in this PR. Also thanks to @koppor for finding these and even providing a .gif.
Focus of "new database" instead of entry.
Expectation: When I toggle something, the focus after toggling twice should be the same. This is not the case.
Sometimes, this happens after step 4, but not reproducable.
Position in entry table
(updated)
The position in the entry table changes depended of the selected group.
Expected behavior: When I select the third entry, show the groups interface, hide the groups interface, press cursor up, the entry above the current entry should be shown.
Example:
complex.bib
Just play around a bit with "complex.bib"