forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add support for modifier keys while dropping #368
Comments
This was referenced Nov 3, 2019
Case b) does not work. JavaFX currently does not provide an API for that. See https://openjfx.io/javadoc/11/javafx.graphics/javafx/scene/input/DragEvent.html. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A user can drop a file into the bibliography. Currently, there is a global setting, what should happen: copy, move, rename, ... This is used by users (see JabRef#5546).
Windows Explorer supports modifier keys (Alt, Shift, and Ctrl) when copying a file. See https://www.techjunkie.com/drag-and-drop-copy-move-shortcut-windows/ for details. Ttis was supported up to JabRef 5.0, but removed in JabRef#5554. Reasons were that Linux Desktops, Windows, and Mac OS X behave differently and developers of JabRef saw no value in the modifier keys.
If someone else then me sees a value, he can describe a solution and come up with a PR.
Initial idea:
a) Respective icon is shown while dragging.
b) In case a modifier key is pressed (see the deleted comments: Alt, Ctrl, Shift), the OS-default action w.r.t. that key is taken. For instance, if I press Ctrl on Windows, the file os copied regardless of the FileDragDropPreferenceType.
The text was updated successfully, but these errors were encountered: