X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fevent%2FTKeypressEvent.java;h=32a1615888334439d9d515fdfd9c08c9909bbac7;hb=b6faeac0d9c3e3ae3376ed28b54ec6ea6408ad7a;hp=62c6be29f4ce8a5ea612b8b337c3ae0cab82c464;hpb=a2018e9964f6c58742cd1e6dd0a0c63e244a89d6;p=fanfix.git diff --git a/src/jexer/event/TKeypressEvent.java b/src/jexer/event/TKeypressEvent.java index 62c6be2..32a1615 100644 --- a/src/jexer/event/TKeypressEvent.java +++ b/src/jexer/event/TKeypressEvent.java @@ -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. *