Add an initial URL keyboard and support for text macros

Text associated with a symbol on a key is sent using the keymap
associated with each keyboard, so the individual symbols need to be
defined in order to be usable in a text macro.
This commit is contained in:
David Boddie
2019-07-22 16:36:17 +00:00
parent d6b59d16fd
commit ecc46733da
9 changed files with 412 additions and 4 deletions

View File

@ -749,6 +749,8 @@ symbols_end_element_callback (GMarkupParseContext *pcontext,
if (data->label) {
eek_symbol_set_label (symbol, data->label);
eek_keyboard_register_symbol (data->keyboard, symbol, data->key,
g_slist_length (data->symbols));
g_free (data->label);
data->label = NULL;
}
@ -929,6 +931,7 @@ eek_xml_layout_real_create_keyboard (EekboardContextService *manager,
return NULL;
}
/* Arrange the sections in the original coordinate system. */
eek_layout_place_sections(keyboard);
/* Use pre-defined modifier mask here. */