X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTButton.java;fp=src%2Fjexer%2FTButton.java;h=82a638922df56ed7ad6086fcfd5ba4aff385e28f;hb=3fe82fa71d39d874691dc85e6a77250fd4953b17;hp=534c12a441b9db40ce07f760e947b7c5e6cf796c;hpb=772b8255e4ee92c9c026bd94df39d0c177d6a6bb;p=fanfix.git diff --git a/src/jexer/TButton.java b/src/jexer/TButton.java index 534c12a..82a6389 100644 --- a/src/jexer/TButton.java +++ b/src/jexer/TButton.java @@ -250,12 +250,12 @@ public class TButton extends TWidget { GraphicsChars.CP437[0xDF], shadowColor); } } - if (mnemonic.getShortcutIdx() >= 0) { + if (mnemonic.getScreenShortcutIdx() >= 0) { if (inButtonPress) { - putCharXY(2 + mnemonic.getShortcutIdx(), 0, + putCharXY(2 + mnemonic.getScreenShortcutIdx(), 0, mnemonic.getShortcut(), menuMnemonicColor); } else { - putCharXY(1 + mnemonic.getShortcutIdx(), 0, + putCharXY(1 + mnemonic.getScreenShortcutIdx(), 0, mnemonic.getShortcut(), menuMnemonicColor); } }