Commit dc004f37 authored by Skylot's avatar Skylot

style: fix code formatting

parent cfbbd99b
...@@ -203,13 +203,18 @@ public class Utils { ...@@ -203,13 +203,18 @@ public class Utils {
icons.add(Utils.openImage("/logos/jadx-logo.png")); icons.add(Utils.openImage("/logos/jadx-logo.png"));
window.setIconImages(icons); 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")) { if (System.getProperty("os.name").toLowerCase().contains("mac")) {
return Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); return Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
} } else {
else { return InputEvent.CTRL_DOWN_MASK;
return InputEvent.CTRL_DOWN_MASK; }
} }
public static int ctrlButton() {
return CTRL_BNT_KEY;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment