Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
dc004f37
Commit
dc004f37
authored
Apr 21, 2019
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: fix code formatting
parent
cfbbd99b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
Utils.java
jadx-gui/src/main/java/jadx/gui/utils/Utils.java
+12
-7
No files found.
jadx-gui/src/main/java/jadx/gui/utils/Utils.java
View file @
dc004f37
...
...
@@ -203,13 +203,18 @@ public class Utils {
icons
.
add
(
Utils
.
openImage
(
"/logos/jadx-logo.png"
));
window
.
setIconImages
(
icons
);
}
public
static
int
ctrlButton
()
{
public
static
final
int
CTRL_BNT_KEY
=
getCtrlButton
();
private
static
int
getCtrlButton
()
{
if
(
System
.
getProperty
(
"os.name"
).
toLowerCase
().
contains
(
"mac"
))
{
return
Toolkit
.
getDefaultToolkit
().
getMenuShortcutKeyMask
();
}
else
{
return
InputEvent
.
CTRL_DOWN_MASK
;
}
return
Toolkit
.
getDefaultToolkit
().
getMenuShortcutKeyMask
();
}
else
{
return
InputEvent
.
CTRL_DOWN_MASK
;
}
}
public
static
int
ctrlButton
()
{
return
CTRL_BNT_KEY
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment