git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#51 wip
[fanfix.git]
/
src
/
jexer
/
TKeypress.java
diff --git
a/src/jexer/TKeypress.java
b/src/jexer/TKeypress.java
index 9cb493282d82adcfab4c1d14e308b40d9d32cc03..c965e7dbab48873ae31a35963d4aaef4231cdcaf 100644
(file)
--- a/
src/jexer/TKeypress.java
+++ b/
src/jexer/TKeypress.java
@@
-622,7
+622,7
@@
public class TKeypress {
* Backspace as ^?.
*/
public static final TKeypress kbBackspaceDel = new TKeypress(false,
* Backspace as ^?.
*/
public static final TKeypress kbBackspaceDel = new TKeypress(false,
- 0, (char)0x7F, false, false, false);
+ 0, (char)
0x7F, false, false, false);
// ------------------------------------------------------------------------
// Variables --------------------------------------------------------------
// ------------------------------------------------------------------------
// Variables --------------------------------------------------------------
@@
-656,7
+656,7
@@
public class TKeypress {
/**
* The character received.
*/
/**
* The character received.
*/
- private
char
ch;
+ private
int
ch;
// ------------------------------------------------------------------------
// Constructors -----------------------------------------------------------
// ------------------------------------------------------------------------
// Constructors -----------------------------------------------------------
@@
-672,7
+672,7
@@
public class TKeypress {
* @param ctrl if true, CTRL was pressed with this keystroke
* @param shift if true, SHIFT was pressed with this keystroke
*/
* @param ctrl if true, CTRL was pressed with this keystroke
* @param shift if true, SHIFT was pressed with this keystroke
*/
- public TKeypress(final boolean isKey, final int fnKey, final
char
ch,
+ public TKeypress(final boolean isKey, final int fnKey, final
int
ch,
final boolean alt, final boolean ctrl, final boolean shift) {
this.isFunctionKey = isKey;
final boolean alt, final boolean ctrl, final boolean shift) {
this.isFunctionKey = isKey;
@@
-737,7
+737,7
@@
public class TKeypress {
*
* @return the character (only valid if isKey is false)
*/
*
* @return the character (only valid if isKey is false)
*/
- public
char
getChar() {
+ public
int
getChar() {
return ch;
}
return ch;
}
@@
-821,6
+821,13
@@
public class TKeypress {
return "\u25C0\u2500\u2518";
}
return "\u25C0\u2500\u2518";
}
+ if (equals(kbShiftLeft)) {
+ return "Shift+\u2190";
+ }
+ if (equals(kbShiftRight)) {
+ return "Shift+\u2192";
+ }
+
if (isFunctionKey) {
switch (keyCode) {
case F1:
if (isFunctionKey) {
switch (keyCode) {
case F1: