From 281f779121527c1d8d9136320fcf231422fbdefd Mon Sep 17 00:00:00 2001 From: ArenaL5 Date: Tue, 29 Mar 2022 00:23:52 +0200 Subject: [PATCH] =?UTF-8?q?=C2=B5,=20=C3=A6=20and=20=C5=93=20also=20genera?= =?UTF-8?q?ted=20by=20Fn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- srcs/juloo.keyboard2/KeyModifier.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/srcs/juloo.keyboard2/KeyModifier.java b/srcs/juloo.keyboard2/KeyModifier.java index 890c565..58355c1 100644 --- a/srcs/juloo.keyboard2/KeyModifier.java +++ b/srcs/juloo.keyboard2/KeyModifier.java @@ -67,13 +67,7 @@ class KeyModifier case KeyValue.FLAG_ACCENT4: return (char)KeyCharacterMap.getDeadChar('\u02DC', c); case KeyValue.FLAG_ACCENT5: - switch (c) - { - case 'u': return 'µ'; - case 'a': return 'æ'; - case 'o': return 'œ'; - default: return (char)KeyCharacterMap.getDeadChar('\u00B8', c); - } + return (char)KeyCharacterMap.getDeadChar('\u00B8', c); case KeyValue.FLAG_ACCENT6: return (char)KeyCharacterMap.getDeadChar('\u00A8', c); case KeyValue.FLAG_ACCENT_CARON: @@ -195,6 +189,9 @@ class KeyModifier case "^": name = "¬"; break; case "%": name = "‰"; break; case "=": name = "≈"; break; + case "u": name = "µ"; break; + case "a": name = "æ"; break; + case "o": name = "œ"; break; case "esc": name = "insert"; break; case "$": name = "€"; break; case "#": name = "£"; break;