update comments / plan

This commit is contained in:
Helium314 2024-03-17 19:19:33 +01:00
parent 4fff31d1f5
commit e8a71fbe04

View file

@ -21,16 +21,18 @@ import kotlinx.serialization.encoding.Encoder
*/ */
@Serializable(with = KeyTypeSerializer::class) @Serializable(with = KeyTypeSerializer::class)
enum class KeyType { enum class KeyType {
CHARACTER, // todo: implement the effect on background
ENTER_EDITING, // also, how to get that specific space bar background?
FUNCTION, CHARACTER, // default
LOCK, ENTER_EDITING, // enter/insert/delete, gets functional key background (if not action key)
MODIFIER, FUNCTION, // f1..., gets functional key background
NAVIGATION, LOCK, // scroll lock, num lock, caps lock, gets functional key background
SYSTEM_GUI, MODIFIER, // alt, ctrl, shift, gets functional key background
NUMERIC, NAVIGATION, // home, page up, page down, tab, arrows, geta default background
PLACEHOLDER, SYSTEM_GUI, // esc, print, pause, meta, (keyboard layout switch), geta functional background
UNSPECIFIED; 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 { override fun toString(): String {
return super.toString().lowercase() return super.toString().lowercase()