From fc8bb3a5396a93800fa438b0214d59b85e00f497 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Tue, 4 Oct 2022 10:10:54 +0200 Subject: [PATCH] =?UTF-8?q?Allow=20to=20type=20=C4=B0=20on=20the=20Turkish?= =?UTF-8?q?=20layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In Turkish, upper case of 'iı' is 'İI' but Java's toUpperCase will return 'II'. To make 'İ' accessible, make it the shift of 'ı'. This has the inconvenient of swapping i and ı on the keyboard. --- srcs/juloo.keyboard2/KeyModifier.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srcs/juloo.keyboard2/KeyModifier.java b/srcs/juloo.keyboard2/KeyModifier.java index 3376961..325594c 100644 --- a/srcs/juloo.keyboard2/KeyModifier.java +++ b/srcs/juloo.keyboard2/KeyModifier.java @@ -354,6 +354,10 @@ class KeyModifier case '─': return '═'; case '│': return '║'; case 'ß': return 'ẞ'; + /* In Turkish, upper case of 'iı' is 'İI' but Java's toUpperCase will + return 'II'. To make 'İ' accessible, make it the shift of 'ı'. This + has the inconvenient of swapping i and ı on the keyboard. */ + case 'ı': return 'İ'; default: return c; } }