Skip to content
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

Proper search command for macOS #165

Closed
krokofant opened this issue Mar 10, 2017 · 5 comments
Closed

Proper search command for macOS #165

krokofant opened this issue Mar 10, 2017 · 5 comments
Labels
GUI Issues in jadx-gui module

Comments

@krokofant
Copy link

krokofant commented Mar 10, 2017

Search is usually binds to CMD+F instead of CTRL+F on macOS. While copying and pasting things into search and closing the search one has to do a bit of a gymnastics with their hands.

jadx version 0.6.1
jadx-gui version 1.0 (?)

@asashour
Copy link
Contributor

For macOS, should the other shortcuts be also with ?

As a side note, should we change the Windows search to be Ctrl +F instead of Ctrl+Shift+F?

@skylot
Copy link
Owner

skylot commented Mar 21, 2019

@asashour sorry I don't have macOS so I don't know which shortcuts are common and must be used. If you know how to make correct shortcuts and can test it - PR are welcome.

As for search, jadx use both shortcuts: Ctrl +F for search in current file and Ctrl+Shift+F for global text search (same shortcuts used in IntelliJ Idea and Android Studio).

@asashour
Copy link
Contributor

I don't have a macOS either.

I see now the shortcut (in the code), but couldn't figure it out from the menu.

@asashour asashour added the GUI Issues in jadx-gui module label Apr 9, 2019
@bagipro
Copy link
Collaborator

bagipro commented Apr 21, 2019

@skylot
Why do you use in jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java

		textSearchAction.putValue(Action.SHORT_DESCRIPTION, NLS.str("menu.text_search"));
		textSearchAction.putValue(Action.ACCELERATOR_KEY,
				getKeyStroke(KeyEvent.VK_F, KeyEvent.CTRL_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK));

with Shift pressed, but for other actions don't?

I have a Mac, so I'm going to implement it (requirement to use Ctrl instead on Cmd makes me nervous for a long time :D)

@skylot
Copy link
Owner

skylot commented Apr 21, 2019

@sergey-wowwow because jadx use both shortcuts:

  • Ctrl +F for search in current file
  • Ctrl+Shift+F for global text search

same shortcuts used in IntelliJ Idea and Android Studio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Issues in jadx-gui module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants