Commit dc004f37 authored by Skylot's avatar Skylot

style: fix code formatting

parent cfbbd99b
...@@ -204,12 +204,17 @@ public class Utils { ...@@ -204,12 +204,17 @@ public class Utils {
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