From 6b3123090c2d13fad4afc60f272cf9b098ed0d85 Mon Sep 17 00:00:00 2001 From: ArenaL5 Date: Sat, 26 Mar 2022 23:02:06 +0000 Subject: [PATCH] Add arrows Add simple arrows to the numeric keypad. Using the Fn key with these arrows will output double arrows. --- res/xml/numeric.xml | 16 ++++++++-------- srcs/juloo.keyboard2/KeyModifier.java | 8 ++++++++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/res/xml/numeric.xml b/res/xml/numeric.xml index ec5b773..348ada1 100644 --- a/res/xml/numeric.xml +++ b/res/xml/numeric.xml @@ -3,26 +3,26 @@ - - - + + + - + - + - - - + + + diff --git a/srcs/juloo.keyboard2/KeyModifier.java b/srcs/juloo.keyboard2/KeyModifier.java index a90d1c6..890c565 100644 --- a/srcs/juloo.keyboard2/KeyModifier.java +++ b/srcs/juloo.keyboard2/KeyModifier.java @@ -205,6 +205,14 @@ class KeyModifier case "?": name = "¿"; break; case "tab": name = "\\t"; break; case "space": name = "nbsp"; break; + case "↖": name = "⇖"; break; + case "↑": name = "⇑"; break; + case "↗": name = "⇗"; break; + case "←": name = "⇐"; break; + case "→": name = "⇒"; break; + case "↙": name = "⇙"; break; + case "↓": name = "⇓"; break; + case "↘": name = "⇘"; break; case "€": case "£": return removed_key; // Avoid showing these twice default: return k; }