TWindowBackend
[fanfix.git] / src / jexer / event / TKeypressEvent.java
index 62c6be29f4ce8a5ea612b8b337c3ae0cab82c464..32a1615888334439d9d515fdfd9c08c9909bbac7 100644 (file)
@@ -89,6 +89,16 @@ public final class TKeypressEvent extends TInputEvent {
             alt, ctrl, shift);
     }
 
+    /**
+     * Create a duplicate instance.
+     *
+     * @return duplicate intance
+     */
+    public TKeypressEvent dup() {
+        TKeypressEvent keypress = new TKeypressEvent(key.dup());
+        return keypress;
+    }
+
     /**
      * Comparison check.  All fields must match to return true.
      *