Skip to content

Add a shortcut to "Quality - Look up full text documents"#2943

Merged
tobiasdiez merged 3 commits into
JabRef:masterfrom
jhshinn:fulltext_shortcut
Jun 29, 2017
Merged

Add a shortcut to "Quality - Look up full text documents"#2943
tobiasdiez merged 3 commits into
JabRef:masterfrom
jhshinn:fulltext_shortcut

Conversation

@jhshinn

@jhshinn jhshinn commented Jun 28, 2017

Copy link
Copy Markdown
Contributor

This PR adds a shortcut key Alt + F7 to the function "Quality"-"Look up full text documents". I've found that a issue was already raised in #1323 after finishing the code revision (hence, I happened to use the modifier Alt rather than Ctrl :-) )

  • Change in CHANGELOG.md described
  • Tests created for changes
  • Screenshots added (for bigger UI changes)
  • Manually tested changed features in running JabRef
  • Check documentation status (Issue created for outdated help page at help.jabref.org?)
  • If you changed the localization: Did you run gradle localizationUpdate?

@Siedlerchr Siedlerchr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just add the missing plus sign and we can merge.
Thanks again for your contribution!

CUT("Cut", Localization.lang("Cut"), "ctrl+X", KeyBindingCategory.EDIT),
DECREASE_TABLE_FONT_SIZE("Decrease table font size", Localization.lang("Decrease table font size"), "ctrl+MINUS", KeyBindingCategory.VIEW),
DELETE_ENTRY("Delete entry", Localization.lang("Delete entry"), "DELETE", KeyBindingCategory.BIBTEX),
DOWNLOAD_FULL_TEXT("Look up full text documents", Localization.lang("Look up full text documents"), "alt F7", KeyBindingCategory.QUALITY),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a result of fixing the keybindind stuff, there now needs to be a plus sign between the modifiers and the key, otherwise it may not be recognized correctly.
Otherwise the code looks good, thanks for your contribution

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Siedlerchr Thanks for the correction~ I've added the sign.

@jhshinn jhshinn force-pushed the fulltext_shortcut branch from e68f280 to aa4cc10 Compare June 28, 2017 07:51
atLeastOneEntryActions.clear();
atLeastOneEntryActions.addAll(Arrays.asList(downloadFullText, lookupIdentifiers));
atLeastOneEntryActions.addAll(Arrays.asList(downloadFullText));
atLeastOneEntryActions.clear();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand these changes: you first add the download action but then clear the list right after.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tobiasdiez sorry for the confusion and thanks for the note. I misunderstood something while doing try and error. I've reverted the changes.

@tobiasdiez

Copy link
Copy Markdown
Member

I've no idea why the build fails, but since these changes should not be the reason for the failing test I'll merge it now.

@tobiasdiez tobiasdiez merged commit e082529 into JabRef:master Jun 29, 2017
@jhshinn jhshinn deleted the fulltext_shortcut branch June 29, 2017 13:36
Siedlerchr added a commit that referenced this pull request Jul 3, 2017
* upstream/master:
  In JUnit tests, always state the expected value before the actual (#2959)
  Update latex2unicode from 0.2 -> 0.2.1
  Fix the function "Edit - Copy BibTeX key and link"  (#2952)
  Update gradle from 3.5 to 4.0
  Update build-scan plugin from 1.3 to 1.8
  Add a shortcut to "Quality - Look up full text documents" (#2943)
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.

3 participants