-
Notifications
You must be signed in to change notification settings - Fork 5k
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
feat(gui): allow user to set custom shortcuts #1980
Conversation
Wow, this is big PR, it will take some time for me to check it.
Looks like there is some difference in registering modifiers in macOs, so this keystoke was set to run action on key release, check PR #1301 for details. To keep this behavior, we should set
After quick search for And some issues I notice:
|
Okay, I was confused because it was only used in the line I linked
Yeah I'm already using it (see ActionModel enum)
It's normal. You probably have Fn lock enabled, trying hold Fn while pressing the F<number>
I don't understand this one. How can I reproduce this issue ? |
I'm unsure if this is what you meant db182ee |
jadx-gui/src/main/java/jadx/gui/settings/ui/shortcut/ShortcutEdit.java
Outdated
Show resolved
Hide resolved
Hm, I know why you use KEY_TYPED event: to catch several keys pressed at the same time, like |
Or I'll just use KEY_RELEASED instead of KEY_TYPED to remove focus |
Ok, everything looks good now 👍 |
There is still some stuff I need to fix, please don't merge until I confirm |
Next time, mark PR as draft if it is not ready for merge 🙂 Also, I just notice that we can't have both keys and mouse shortcuts for navigation (#1718 case), only one not both 😭 |
I struggled to make the dummy actions get called without being added to any component. |
Can you test the shortcuts in script panel ? I don't know how to access it Other than that I think the PR is ready to be merged now |
Well, it works fine after resetting settings 🤣
So, during load, default shortcuts values should be used if action missing in loaded settings. To check scripts actions in left tree go to |
Issue noted, I'll fix it tomorrow |
Why extending HashMap is not allowed ? |
Ready for merge |
Ok, I think it is fine to merge. Hope we don't get many regressions 😃 |
It's fine. You can ping me in an issue related to this PR and I'll fix it |
@Mino260806 sure 🤣 |
Where can I find the custom shortcuts panel? |
Supports keyboard keys and mouse buttons
I kept the default shortcuts for each action
Toolbar / Menu shortcuts
Code area
I created some new classes, please let me know if I should move any to another package
Also, I would like to know if there are other shortcuts that need to be customized. Currently, I added Menu / Toolbar actions and CodeArea.
A small question
jadx/jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java
Line 1125 in 868e99e
What is the significance of
SystemInfo.IS_MAC
argument here ? There's no way to keep it to make it customizable like other shortcutsRelated issues
#1721
#1718
#1609
#1479
#1085