From 5f47beb5b0decf92b7804726d93b6eb53e2ca816 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 2 Apr 2022 16:56:40 +0200 Subject: [PATCH] Add currency symbols under the Fn key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fn+e = € Fn+l = £ Fn+r = ₹ Fn+y = ¥ Fn+c = ¢ Fn+p = ₱ --- srcs/juloo.keyboard2/KeyModifier.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/srcs/juloo.keyboard2/KeyModifier.java b/srcs/juloo.keyboard2/KeyModifier.java index dc81195..39fc5a7 100644 --- a/srcs/juloo.keyboard2/KeyModifier.java +++ b/srcs/juloo.keyboard2/KeyModifier.java @@ -261,8 +261,6 @@ class KeyModifier case "a": name = "æ"; break; case "o": name = "œ"; break; case "esc": name = "insert"; break; - case "$": name = "€"; break; - case "#": name = "£"; break; case "*": name = "°"; break; case ".": name = "…"; break; case ",": name = "·"; break; @@ -278,6 +276,13 @@ class KeyModifier case "↙": name = "⇙"; break; case "↓": name = "⇓"; break; case "↘": name = "⇘"; break; + // Currency symbols + case "e": name = "€"; break; + case "l": name = "£"; break; + case "r": name = "₹"; break; + case "y": name = "¥"; break; + case "c": name = "¢"; break; + case "p": name = "₱"; break; case "€": case "£": return removed_key; // Avoid showing these twice default: return k; }