From 363a65223c866e84cf5c624654a24177b0941846 Mon Sep 17 00:00:00 2001 From: ArenaL5 Date: Sat, 26 Mar 2022 21:08:53 +0000 Subject: [PATCH] Add non-breaking space as Fn+Space --- srcs/juloo.keyboard2/KeyModifier.java | 1 + srcs/juloo.keyboard2/KeyValue.java | 1 + 2 files changed, 2 insertions(+) diff --git a/srcs/juloo.keyboard2/KeyModifier.java b/srcs/juloo.keyboard2/KeyModifier.java index 0bc8e3f..a90d1c6 100644 --- a/srcs/juloo.keyboard2/KeyModifier.java +++ b/srcs/juloo.keyboard2/KeyModifier.java @@ -204,6 +204,7 @@ class KeyModifier case "!": name = "¡"; break; case "?": name = "¿"; break; case "tab": name = "\\t"; break; + case "space": name = "nbsp"; break; case "€": case "£": return removed_key; // Avoid showing these twice default: return k; } diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 97564a2..74d21aa 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -265,5 +265,6 @@ class KeyValue addKey("\\t", "\\t", '\t', EVENT_NONE, 0); // Send the tab character addKey("space", "\r", ' ', KeyEvent.KEYCODE_SPACE, FLAG_KEY_FONT | FLAG_SMALLER_FONT); + addKey("nbsp", "\u237d", '\u00a0', EVENT_NONE, FLAG_KEY_FONT | FLAG_SMALLER_FONT); } }