X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTKeypress.java;h=58085455eda4897a6ed3c1ee3f045fd11cf7f6c6;hb=3cb993369fa76b6e9fd8ef19db3366349a09a678;hp=5ba3484d177892000176413acb6b06e0f99c152b;hpb=051e29138b18fb4b731a72f8727475b10e4c74e4;p=fanfix.git diff --git a/src/jexer/TKeypress.java b/src/jexer/TKeypress.java index 5ba3484..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"), @@ -174,7 +174,6 @@ public 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 class TKeypress { */ @Override public String toString() { + // Special case: Enter is " " + if (equals(kbEnter)) { + return "\u25C0\u2500\u2518"; + } + if (isFunctionKey) { switch (keyCode) { case F1: