From: David ‘Bombe’ Roden Date: Sat, 5 Apr 2008 02:30:09 +0000 (+0000) Subject: fix wrong accelerators X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0f8412610da2919297ee9dd33098c6a654499c31;p=jSite2.git fix wrong accelerators git-svn-id: http://trooper/svn/projects/jSite/trunk@598 c3eda9e8-030b-0410-8277-bc7414b0a119 --- 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"));