-
-
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
A bug about the attachment and the deletion #7392
Comments
Seems a binding is not updated properly. |
I'm a junior software engineering student interested in this issue. I would like to take a look into it and see what I can do. May I take this issue? If so, I would like a little guidance as I'm new to this project. Thanks in advance! |
Hello @BenArou nice to hear, that you took interest in JabRef. |
It looks like there is an issue that stems from ContextMenu MenuItem's accelerators overlapping with the MainMenu accelerators. Not sure theres a clean solution. Where this pattern appears in the application (such as RightClickMenu generation) there are also similar issues. Note: The accelerator issue when deleting a linked file is related but not the complete problem. It also appears there are some focus issues which is what I think the original bug is describing. When the attached file, looses focus the application should no longer be able to delete the file by pressing DELETE.That being said. Expected behavior| press DELETE with an entry selected, and a SINGLE prompt will show up asking if you want to delete x. Noramlly works this way and there are no issues. Unless... The IssueThe issue is triggered when a contextMenu (in this case RightClickMenu) is generated with a right click. The menu creation process adds key shortcuts (via the accelerator) which are identical to the main menu accelerator shortcuts. Now when I press DELETE TWO events are fired, one from each menu. If I have two entries and press it it will ask me twice and potentially delete both of them. Potential solutions, but someone may have a better idea.
Link contains an illustration of the issue. |
Thank you for the pointers, I'll see what I can do and keep you updated on whether I need some help! |
Hi @BenArou, I need to know if you're still working on this before I take a look into it. |
Did a little digging into this issue and it seems this is not the only one related to keybinding. for example when you first open the app and type SolutionI had a look at how other open-source projects using JavaFX handle this, Scene Builder, for example, have only one |
Hello, is this issue still valid? If so, we are a group of university students who would like to attempt to solve this. Thanks! |
Please use ***@***.*** due that it is difficult to login qq email.
|
I'm sorry, I'm not sure what you mean. Could you please rephrase. |
@AvaniDhaliwal I think @idadoudou should reconfigure its email adress stored on GitHub. Currently, they receives notifications from this issue. |
@AvaniDhaliwal Please thoroughly read what is written at #7392 (comment). |
@AvaniDhaliwal I haven't looked into this issue in a long time. It's definitely a difficult one, and it's not a good first issue. To solve this for good, one needs to make many changes across the codebase and a change to the entire keybinding architecture; thus, a good understanding of the codebase is required. However, as @koppor stated, you are welcome to read the comment above to better understand the problem and look for workarounds. |
JabRef 5.3--2021-01-02--0b4be8a
Linux 4.18.0-240.1.1.el8_3.x86_64 amd64
Java 15.0.1
Steps to reproduce:
The text was updated successfully, but these errors were encountered: