git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
double-click support
[nikiroo-utils.git]
/
src
/
jexer
/
TKeypress.java
diff --git
a/src/jexer/TKeypress.java
b/src/jexer/TKeypress.java
index 5e551d8c18f4397a33bb0dd10ebe1544c06ff728..872ebc45b50d44891267aaa265994e6b4538bf07 100644
(file)
--- a/
src/jexer/TKeypress.java
+++ b/
src/jexer/TKeypress.java
@@
-3,7
+3,7
@@
*
* The MIT License (MIT)
*
*
* The MIT License (MIT)
*
- * Copyright (C) 201
6
Kevin Lamonte
+ * Copyright (C) 201
7
Kevin Lamonte
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@
-275,6
+275,17
@@
public final class TKeypress {
this.shift = shift;
}
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.
*
/**
* Comparison check. All fields must match to return true.
*