mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 14:02:44 +00:00
update comments / plan
This commit is contained in:
parent
4fff31d1f5
commit
e8a71fbe04
1 changed files with 12 additions and 10 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue