*
* 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"),
/**
* This class represents keystrokes.
*/
-public final class TKeypress {
+public class TKeypress {
// ------------------------------------------------------------------------
// Constants --------------------------------------------------------------
*/
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);
*/
@Override
public String toString() {
+ // Special case: Enter is "<arrow> <line> <angle>"
+ if (equals(kbEnter)) {
+ return "\u25C0\u2500\u2518";
+ }
+
if (isFunctionKey) {
switch (keyCode) {
case F1: