From 0f8412610da2919297ee9dd33098c6a654499c31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 5 Apr 2008 02:30:09 +0000 Subject: [PATCH] fix wrong accelerators git-svn-id: http://trooper/svn/projects/jSite/trunk@598 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/jsite/gui/I18nAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/pterodactylus/jsite/gui/I18nAction.java b/src/net/pterodactylus/jsite/gui/I18nAction.java index 4fa2950..0d36f01 100644 --- a/src/net/pterodactylus/jsite/gui/I18nAction.java +++ b/src/net/pterodactylus/jsite/gui/I18nAction.java @@ -64,7 +64,7 @@ public abstract class I18nAction extends AbstractAction { */ public I18nAction(String i18nName, boolean enabled, Icon icon) { putValue(Action.NAME, I18n.get(i18nName + ".name")); - putValue(Action.MNEMONIC_KEY, (int) I18n.get(i18nName + ".mnemonic").charAt(0)); + putValue(Action.MNEMONIC_KEY, I18n.getKey(i18nName + ".mnemonic")); putValue(Action.ACCELERATOR_KEY, I18n.getKeyStroke(i18nName + ".accelerator")); putValue(Action.SHORT_DESCRIPTION, I18n.get(i18nName + ".shortDescription")); putValue(Action.LONG_DESCRIPTION, I18n.get(i18nName + ".longDescription")); -- 2.7.4