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
Fix bounds check
[nikiroo-utils.git]
/
src
/
jexer
/
event
/
TKeypressEvent.java
diff --git
a/src/jexer/event/TKeypressEvent.java
b/src/jexer/event/TKeypressEvent.java
index 4243a795821100f585258b82136b1595bebd1eee..32a1615888334439d9d515fdfd9c08c9909bbac7 100644
(file)
--- a/
src/jexer/event/TKeypressEvent.java
+++ b/
src/jexer/event/TKeypressEvent.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"),
@@
-89,6
+89,16
@@
public final class TKeypressEvent extends TInputEvent {
alt, ctrl, shift);
}
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.
*
/**
* Comparison check. All fields must match to return true.
*