abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorJules Aguillon2022-10-04 10:10:54 +0200
committerJules Aguillon2022-10-04 10:12:22 +0200
commitfc8bb3a5396a93800fa438b0214d59b85e00f497 (patch)
treefe466a9249bde8f39bb9aca83bf15a1011e8ac6e
parentdda8f0314d786d09791512ad949ae76f2068b25a (diff)
downloadunexpected-keyboard-fc8bb3a5396a93800fa438b0214d59b85e00f497.tar.gz
unexpected-keyboard-fc8bb3a5396a93800fa438b0214d59b85e00f497.zip
Allow to type İ on the Turkish layout
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.
-rw-r--r--srcs/juloo.keyboard2/KeyModifier.java4
1 files changed, 4 insertions, 0 deletions
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;
}
}