-
-
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
Fix drag and drop into empty library #7555
Conversation
Fixes issue preventing files from being drag & dropped into an empty library Added a drag/drop handlers on the table-view to allow for files to be drag & drop into an empty library
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.
Code wise this looks good to me. Thanks! Have you tested that dropping on entries still works and takes precedence over the general table view drop handler (e.g. directly dropping on an entry adds a link to this entry)?
Also you have checkstyle errors, may I ask you to please fix them.
The short answer, no I cannot drop a file on an entry and get it to add the file to that entry. But it never did. I checked all the the positions top+bottom and center, and only top and bottom add files but only as new entries. I was a little confused as to the intended behavior. I would be happy to investigate further. How is it intended to work? |
Lined added to wrong section Line move to fix issue
extra space removed
Dropping a file on an entry depends on the modifier key you pressed (alt, shift or ctrl). |
I'll check it out and give you an update |
So I'm guessing my issue is a Mac OS transfer mode key thing or possibly a system security setting, but I'm unable to get "move" to trigger and "copy" does nothing. Only "link" adds a file to the entry (control + drag). To answer your original question the entries still take precedence, and work exactly the way they did without my fix. With my fix: Let me know if you want me to investigate more, or require further changes. |
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.
Ok, thanks for testing!
@Siedlerchr didn't we fix these drag & drop issues on Mac as well?
@tp-1000 On mac you need to use the option key. See the switch method in handleOnDragDropped |
I checked this with a minimal demo app and it seems like it's a bug again in javafx |
That's no good. Well, thanks for follow up. Yeah, I saw how it was suppose to work, just wasn't working for me. |
Is there a related open issue in the javafx bugtracker? |
I couldn't find one, so I submitted one yesterday evening. TL;DR: On Mac only Copy mode works |
As this issue on mac is not related to your changes, https://bugs.openjdk.java.net/browse/JDK-8227371 |
* upstream/master: (191 commits) Fix for issue 7416: font size of the preferences dialog does not update with the rest of the GUI. (#7509) Fix school/instituation is printed twice (#7574) Dsiable notarisation until we hae an account for JabRef e.V. (#7572) Fix citation keys unintentionally being overwritten on import (#7443) Fix AuthentificationPlugin not declared in mergedModule (#7570) Suggestions for changes in caching latex free authors (#7301) Add simple Unit Tests (#7542) Fix drag and drop into empty library (#7555) Bump richtextfx from 0.10.4 to 0.10.6 (#7563) Bump pdfbox from 2.0.22 to 2.0.23 (#7561) Bump org.eclipse.jgit (#7560) Bump fontbox from 2.0.22 to 2.0.23 (#7562) Bump guava from 30.1-jre to 30.1.1-jre (#7564) Bump xmpbox from 2.0.22 to 2.0.23 (#7565) Bump hmarr/auto-approve-action from v2.0.0 to v2.1.0 (#7566) Add gource (#7193) UI: Fix for group icon (#7552) Fix for issue 6487: Opening BibTex file (doubleclick) from Folder with spaces not working (#7551) add ability to insert arxivId (#7549) Fixed missing trigger for linked file operations (#7548) ...
fixes #6851
Drag & Drop into empty library
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)