From e8a71fbe042d92c43393675ef255bc3fb909b97b Mon Sep 17 00:00:00 2001 From: Helium314 Date: Sun, 17 Mar 2024 19:19:33 +0100 Subject: [PATCH] update comments / plan --- .../keyboard_parser/floris/KeyType.kt | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/helium314/keyboard/keyboard/internal/keyboard_parser/floris/KeyType.kt b/app/src/main/java/helium314/keyboard/keyboard/internal/keyboard_parser/floris/KeyType.kt index 8e334825f..d6e93c255 100644 --- a/app/src/main/java/helium314/keyboard/keyboard/internal/keyboard_parser/floris/KeyType.kt +++ b/app/src/main/java/helium314/keyboard/keyboard/internal/keyboard_parser/floris/KeyType.kt @@ -21,16 +21,18 @@ import kotlinx.serialization.encoding.Encoder */ @Serializable(with = KeyTypeSerializer::class) enum class KeyType { - CHARACTER, - ENTER_EDITING, - FUNCTION, - LOCK, - MODIFIER, - NAVIGATION, - SYSTEM_GUI, - NUMERIC, - PLACEHOLDER, - UNSPECIFIED; + // todo: implement the effect on background + // also, how to get that specific space bar background? + CHARACTER, // default + ENTER_EDITING, // enter/insert/delete, gets functional key background (if not action key) + FUNCTION, // f1..., gets functional key background + LOCK, // scroll lock, num lock, caps lock, gets functional key background + MODIFIER, // alt, ctrl, shift, gets functional key background + NAVIGATION, // home, page up, page down, tab, arrows, geta default background + SYSTEM_GUI, // esc, print, pause, meta, (keyboard layout switch), geta functional background + NUMERIC, // numpad keys, get larger letter and larger width + PLACEHOLDER, // other keys go here, e.g. in shift, placeholder, delete the placeholder gets (typically) replaced by the bottom keyboard row + UNSPECIFIED; // treated like default override fun toString(): String { return super.toString().lowercase()