Prep for 2019 release
[fanfix.git] / src / jexer / TKeypress.java
index 2470bdfba892196348016f85f0633489413352c5..58085455eda4897a6ed3c1ee3f045fd11cf7f6c6 100644 (file)
@@ -3,7 +3,7 @@
  *
  * The MIT License (MIT)
  *
- * Copyright (C) 2017 Kevin Lamonte
+ * Copyright (C) 2019 Kevin Lamonte
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -31,7 +31,7 @@ package jexer;
 /**
  * This class represents keystrokes.
  */
-public final class TKeypress {
+public class TKeypress {
 
     // ------------------------------------------------------------------------
     // Constants --------------------------------------------------------------
@@ -174,7 +174,6 @@ public final class TKeypress {
      */
     public static final int ESC         = 43;
 
-
     // Special "no-key" keypress, used to ignore undefined keystrokes
     public static final TKeypress kbNoKey = new TKeypress(true,
             TKeypress.NONE, ' ', false, false, false);
@@ -797,6 +796,11 @@ public final class TKeypress {
      */
     @Override
     public String toString() {
+        // Special case: Enter is "<arrow> <line> <angle>"
+        if (equals(kbEnter)) {
+            return "\u25C0\u2500\u2518";
+        }
+
         if (isFunctionKey) {
             switch (keyCode) {
             case F1: