-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix issue 9863 - Change Tab selection order #9907
Changes from 5 commits
5768e98
5ba1532
d2c78bf
0a210c5
8148a93
ea1b53d
6598840
b220d5a
31ab24c
ddb70c4
e693985
1284e84
7bdc35a
89de583
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -55,7 +55,8 @@ public enum KeyBinding { | ||||||||||||||||||||||||||||||||||||||||
FILE_LIST_EDITOR_MOVE_ENTRY_DOWN("File list editor, move entry down", Localization.lang("File list editor, move entry down"), "ctrl+DOWN", KeyBindingCategory.VIEW), | |||||||||||||||||||||||||||||||||||||||||
FILE_LIST_EDITOR_MOVE_ENTRY_UP("File list editor, move entry up", Localization.lang("File list editor, move entry up"), "ctrl+UP", KeyBindingCategory.VIEW), | |||||||||||||||||||||||||||||||||||||||||
FIND_UNLINKED_FILES("Search for unlinked local files", Localization.lang("Search for unlinked local files"), "shift+F7", KeyBindingCategory.QUALITY), | |||||||||||||||||||||||||||||||||||||||||
FOCUS_ENTRY_TABLE("Focus entry table", Localization.lang("Focus entry table"), "alt+1", KeyBindingCategory.VIEW), | |||||||||||||||||||||||||||||||||||||||||
FOCUS_ENTRY_TABLE("Focus entry table", Localization.lang("Focus entry table"), "TAB", KeyBindingCategory.VIEW), | |||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you change this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is changed to match the Tasks of focusing on entry table after pressing tab from the pull request #9863 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it still possible to navigate away from the entry table? I would see tab as cycling though different ui components: Main menu entries, groups, main table, entry editor, ... It should be possible to focus these elements using quick shortcut. Alr+1 was such a shortcut. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think there is a bit of a misunderstanding of the issue: The guy means: If you have the entry editor open, pressing shift + tab should navigate to the group. And if your focus is on the group; Navigation with tab should go forward to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi Siedlerchr, we can use alt + 1 to focus on the entry table (like before) and alt + 2 to focus on the group list There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the reporter @DvP17 at #9863 really meant a proper Tab cycling order. I agree, however, that this is very difficult to implement. A workaround using Alt+1 and Alt+2 is OK for me. Note that the hotkey system was revised at #1525. Updated at #1605.
Maybe, we should think about propr key binding defaults. Alt+Number is used for both toggle and focus in the implementation of 2016. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that we have a blog article on a revised hotkey system in 2016: https://blog.jabref.org/2016/08/15/HotkeyRevision/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. alt +1 and alt +2 are no longer used |
|||||||||||||||||||||||||||||||||||||||||
FOCUS_GROUP_LIST("Focus group list", Localization.lang("Focus group list"), "shift+TAB", KeyBindingCategory.VIEW), | |||||||||||||||||||||||||||||||||||||||||
HELP("Help", Localization.lang("Help"), "F1", KeyBindingCategory.FILE), | |||||||||||||||||||||||||||||||||||||||||
IMPORT_INTO_CURRENT_DATABASE("Import into current library", Localization.lang("Import into current library"), "ctrl+I", KeyBindingCategory.FILE), | |||||||||||||||||||||||||||||||||||||||||
IMPORT_INTO_NEW_DATABASE("Import into new library", Localization.lang("Import into new library"), "ctrl+alt+I", KeyBindingCategory.FILE), | |||||||||||||||||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -10,6 +10,7 @@ | |||||||||||||||||||||||||
import javafx.scene.layout.VBox; | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
import org.jabref.gui.actions.SimpleCommand; | ||||||||||||||||||||||||||
import org.jabref.gui.groups.GroupTreeView; | ||||||||||||||||||||||||||
import org.jabref.gui.icon.IconTheme; | ||||||||||||||||||||||||||
import org.jabref.logic.l10n.Localization; | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
|
@@ -71,4 +72,13 @@ private Node createHeaderView() { | |||||||||||||||||||||||||
protected void addExtraButtonToHeader(Button button, int position) { | ||||||||||||||||||||||||||
this.buttonContainer.getChildren().add(position, button); | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
public void requestFocus() { | ||||||||||||||||||||||||||
for (Node child : getChildren()) { | ||||||||||||||||||||||||||
if (child instanceof GroupTreeView) { | ||||||||||||||||||||||||||
((GroupTreeView) child).requestFocusGroupTree(); | ||||||||||||||||||||||||||
break; | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Casting can be omitted by the new pattern matching feature of java
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. casting has been replaced by pattern matching |
||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
} |
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 fix the checkstyle issue
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.
checkstyle issue fixed