X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FShortcutKeyMaskExWrapper8.java;h=f1014af2b09bcae653c4a055fc6e510c6e95d0d9;hb=83a2bf2f200ffb47f616af028d5ff6a403b9ee4a;hp=78254b52b7dea5d2997e74e4ef442055b62b9fab;hpb=9d2ac8fe3057585a37586379a3c1cd2ead49aafe;p=jalview.git diff --git a/src/jalview/util/ShortcutKeyMaskExWrapper8.java b/src/jalview/util/ShortcutKeyMaskExWrapper8.java index 78254b5..f1014af 100644 --- a/src/jalview/util/ShortcutKeyMaskExWrapper8.java +++ b/src/jalview/util/ShortcutKeyMaskExWrapper8.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.util; import java.awt.GraphicsEnvironment; @@ -7,8 +27,15 @@ import java.awt.event.MouseEvent; public class ShortcutKeyMaskExWrapper8 implements ShortcutKeyMaskExWrapperI { - public final static int SHIFT_DOWN_MASK = KeyEvent.SHIFT_MASK; - public final static int ALT_DOWN_MASK = KeyEvent.ALT_MASK; + public final static int SHIFT_DOWN_MASK; + + public final static int ALT_DOWN_MASK; + + static + { + SHIFT_DOWN_MASK = KeyEvent.SHIFT_MASK; + ALT_DOWN_MASK = KeyEvent.ALT_MASK; + } @Override public int getMenuShortcutKeyMaskEx()