JAL-3806 fix and test for one-to-many sequence mapping case
[jalview.git] / src / jalview / util / ShortcutKeyMaskExWrapper11.java
index 41a6aa0..9877b5d 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.
+ * 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();
   }
 
+
 }