mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-03-13 02:42:47 +01:00
added simple navigation layer
This commit is contained in:
parent
31f209bcd5
commit
1bbeb8861e
@ -21,14 +21,14 @@ struct clr_scheme scheme1 = {
|
|||||||
/* layers is an ordered list of layouts, used to cycle through */
|
/* layers is an ordered list of layouts, used to cycle through */
|
||||||
static enum layout_id layers[] = {
|
static enum layout_id layers[] = {
|
||||||
Full, // First layout is the default layout on startup
|
Full, // First layout is the default layout on startup
|
||||||
Special, Emoji, Simple, SimpleGrid, Cyrillic, Arabic,
|
Special, Emoji, Simple, SimpleGrid, Nav, Cyrillic, Arabic,
|
||||||
NumLayouts // signals the last item, may not be omitted
|
NumLayouts // signals the last item, may not be omitted
|
||||||
};
|
};
|
||||||
|
|
||||||
/* layers is an ordered list of layouts, used to cycle through */
|
/* layers is an ordered list of layouts, used to cycle through */
|
||||||
static enum layout_id landscape_layers[] = {
|
static enum layout_id landscape_layers[] = {
|
||||||
Landscape, // First layout is the default layout on startup
|
Landscape, // First layout is the default layout on startup
|
||||||
Special, Emoji,
|
Special, Emoji, Nav,
|
||||||
NumLayouts // signals the last item, may not be omitted
|
NumLayouts // signals the last item, may not be omitted
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ enum layout_id {
|
|||||||
Cyrillic,
|
Cyrillic,
|
||||||
Arabic,
|
Arabic,
|
||||||
Emoji,
|
Emoji,
|
||||||
|
Nav,
|
||||||
Landscape,
|
Landscape,
|
||||||
ComposeA,
|
ComposeA,
|
||||||
ComposeE,
|
ComposeE,
|
||||||
@ -64,7 +65,7 @@ enum layout_id {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct key keys_full[], keys_special[], keys_simple[], keys_simplegrid[],
|
static struct key keys_full[], keys_special[], keys_simple[], keys_simplegrid[],
|
||||||
keys_cyrillic[], keys_arabic[], keys_emoji[], keys_landscape[],
|
keys_cyrillic[], keys_arabic[], keys_emoji[], keys_nav[], keys_landscape[],
|
||||||
keys_compose_a[], keys_compose_e[], keys_compose_y[], keys_compose_u[],
|
keys_compose_a[], keys_compose_e[], keys_compose_y[], keys_compose_u[],
|
||||||
keys_compose_i[], keys_compose_o[], keys_compose_w[], keys_compose_r[],
|
keys_compose_i[], keys_compose_o[], keys_compose_w[], keys_compose_r[],
|
||||||
keys_compose_t[], keys_compose_p[], keys_compose_s[], keys_compose_d[],
|
keys_compose_t[], keys_compose_p[], keys_compose_s[], keys_compose_d[],
|
||||||
@ -86,6 +87,7 @@ static struct layout layouts[NumLayouts] = {
|
|||||||
[Cyrillic] = {keys_cyrillic, "cyrillic", "cyrillic"},
|
[Cyrillic] = {keys_cyrillic, "cyrillic", "cyrillic"},
|
||||||
[Arabic] = {keys_arabic, "arabic", "arabic"},
|
[Arabic] = {keys_arabic, "arabic", "arabic"},
|
||||||
[Emoji] = {keys_emoji, "latin", "emoji"},
|
[Emoji] = {keys_emoji, "latin", "emoji"},
|
||||||
|
[Nav] = {keys_nav, "latin", "nav"},
|
||||||
[Landscape] = {keys_landscape, "latin", "landscape"},
|
[Landscape] = {keys_landscape, "latin", "landscape"},
|
||||||
[ComposeA] = {keys_compose_a, "latin"},
|
[ComposeA] = {keys_compose_a, "latin"},
|
||||||
[ComposeE] = {keys_compose_e, "latin"},
|
[ComposeE] = {keys_compose_e, "latin"},
|
||||||
@ -726,6 +728,26 @@ static struct key keys_emoji[] = {
|
|||||||
{"", "", 0.0, Last},
|
{"", "", 0.0, Last},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct key keys_nav[] = {
|
||||||
|
{"Esc", "Esc", 1.0, Code, KEY_ESC, .scheme = 1},
|
||||||
|
{"", "", 1.0, Code, KEY_SPACE, .scheme = 1},
|
||||||
|
{"↑", "↑", 1.0, Code, KEY_UP, .scheme = 1},
|
||||||
|
{"⇈", "⇈", 1.0, Code, KEY_PAGEUP, .scheme = 1},
|
||||||
|
{"", "", 0.0, EndRow},
|
||||||
|
|
||||||
|
{"q", "q", 1.0, Code, KEY_Q, .scheme = 1},
|
||||||
|
{"←", "←", 1.0, Code, KEY_LEFT, .scheme = 1},
|
||||||
|
{"Enter", "Enter", 1.0, Code, KEY_ENTER, .scheme = 1},
|
||||||
|
{"→", "→", 1.0, Code, KEY_RIGHT, .scheme = 1},
|
||||||
|
{"", "", 0.0, EndRow},
|
||||||
|
|
||||||
|
{"⌫", "⌫", 1.0, Code, KEY_BACKSPACE, .scheme = 1},
|
||||||
|
{"", "", 1.0, Code, KEY_SPACE, .scheme = 1},
|
||||||
|
{"↓", "↓", 1.0, Code, KEY_DOWN, .scheme = 1},
|
||||||
|
{"⇊", "⇊", 1.0, Code, KEY_PAGEDOWN, .scheme = 1},
|
||||||
|
{"", "", 0.0, Last},
|
||||||
|
};
|
||||||
|
|
||||||
static struct key keys_landscape[] = {
|
static struct key keys_landscape[] = {
|
||||||
{"Esc", "Esc", 1.0, Code, KEY_ESC, .scheme = 1},
|
{"Esc", "Esc", 1.0, Code, KEY_ESC, .scheme = 1},
|
||||||
{"q", "Q", 1.0, Code, KEY_Q, &layouts[Emoji]},
|
{"q", "Q", 1.0, Code, KEY_Q, &layouts[Emoji]},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user