TWindowBackend
[fanfix.git] / src / jexer / TKeypress.java
index 34b286fec1e35b39ecb25acbc6de7a79187e218c..872ebc45b50d44891267aaa265994e6b4538bf07 100644 (file)
@@ -275,6 +275,17 @@ public final class TKeypress {
         this.shift         = shift;
     }
 
+    /**
+     * Create a duplicate instance.
+     *
+     * @return duplicate intance
+     */
+    public TKeypress dup() {
+        TKeypress keypress = new TKeypress(isFunctionKey, keyCode, ch,
+            alt, ctrl, shift);
+        return keypress;
+    }
+
     /**
      * Comparison check.  All fields must match to return true.
      *