added SHIFT_SPACE_IS_TAB as compile time parameter

for the mobile layout, we want shift+space to produce tab , which needed
to be implemented in the main code. For the desktop layout, we don't want
this though, a config parameter now handles this at compile time.

Ref: https://github.com/jjsullivan5196/wvkbd/pull/103
This commit is contained in:
Maarten van Gompel
2025-08-09 21:19:08 +02:00
parent 5689b6bd33
commit b3a7e95c69
4 changed files with 9 additions and 2 deletions

5
main.c
View File

@@ -1058,6 +1058,11 @@ main(int argc, char **argv)
if (keyboard.vkbd == NULL) {
die("failed to init virtual keyboard_manager\n");
}
#ifdef SHIFT_SPACE_IS_TAB
keyboard.shift_space_is_tab = true;
#else
keyboard.shift_space_is_tab = false;
#endif
kbd_init(&keyboard, (struct layout *)&layouts, layer_names_list,
landscape_layer_names_list);