X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Futil%2FShortcutKeyMaskExWrapper11.java;h=9877b5da106d5c51e7fc8b742b8d8be04e94c505;hb=27aed96d1aeae689818bd0a0028553186e3c3839;hp=41a6aa0ad4bf5105f45c8c5da573456888a1f873;hpb=9d2ac8fe3057585a37586379a3c1cd2ead49aafe;p=jalview.git diff --git a/src/jalview/util/ShortcutKeyMaskExWrapper11.java b/src/jalview/util/ShortcutKeyMaskExWrapper11.java index 41a6aa0..9877b5d 100644 --- a/src/jalview/util/ShortcutKeyMaskExWrapper11.java +++ b/src/jalview/util/ShortcutKeyMaskExWrapper11.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 ShortcutKeyMaskExWrapper11 implements ShortcutKeyMaskExWrapperI { - public final static int SHIFT_DOWN_MASK = KeyEvent.SHIFT_DOWN_MASK; - public final static int ALT_DOWN_MASK = KeyEvent.ALT_DOWN_MASK; + public final static int SHIFT_DOWN_MASK; + + public final static int ALT_DOWN_MASK; + + static + { + SHIFT_DOWN_MASK = KeyEvent.SHIFT_DOWN_MASK; + ALT_DOWN_MASK = KeyEvent.ALT_DOWN_MASK; + } @Override public int getMenuShortcutKeyMaskEx() @@ -31,4 +58,5 @@ public class ShortcutKeyMaskExWrapper11 implements ShortcutKeyMaskExWrapperI return e.getModifiersEx(); } + }