X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTKeypress.java;h=58085455eda4897a6ed3c1ee3f045fd11cf7f6c6;hb=c1d8e2b874088d4336bd3ba0a04623176d2039a0;hp=2470bdfba892196348016f85f0633489413352c5;hpb=d6ee0801333ff93dffd851f4c1a44519c96c371d;p=fanfix.git diff --git a/src/jexer/TKeypress.java b/src/jexer/TKeypress.java index 2470bdf..5808545 100644 --- a/src/jexer/TKeypress.java +++ b/src/jexer/TKeypress.java @@ -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 " " + if (equals(kbEnter)) { + return "\u25C0\u2500\u2518"; + } + if (isFunctionKey) { switch (keyCode) { case F1: