From 95c8acc31e53f2b98a97ca421621fd8a9cb72cfd Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 6 Feb 2022 23:01:35 +0100 Subject: Add the Meta key Currently using the diamond symbol like the history meta key: https://en.wikipedia.org/wiki/Meta_key However, this key is actually interpreted as the Super/Windows key but Android calls it "meta" internally. --- srcs/juloo.keyboard2/KeyValue.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'srcs/juloo.keyboard2/KeyValue.java') diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 7addcb2..5461f9f 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -32,6 +32,7 @@ class KeyValue public static final int FLAG_SHIFT = (1 << 11); public static final int FLAG_ALT = (1 << 12); public static final int FLAG_FN = (1 << 13); + public static final int FLAG_META = (1 << 14); // Accent flags public static final int FLAG_ACCENT1 = (1 << 16); // Grave @@ -159,6 +160,7 @@ class KeyValue addModifierKey("superscript", "◌͆", FLAG_ACCENT_SUPERSCRIPT); addModifierKey("subscript", "◌̺", FLAG_ACCENT_SUBSCRIPT); addModifierKey("fn", "Fn", FLAG_FN); + addModifierKey("meta", "◆", FLAG_META); addCharKey('a', KeyEvent.KEYCODE_A); addCharKey('b', KeyEvent.KEYCODE_B); -- cgit v1.2.3