layout: Ignore keycodes without corresponding keys

This commit is contained in:
Dorota Czaplejewicz
2019-06-30 20:38:35 +00:00
parent 737d57c1f4
commit baf848c791
2 changed files with 9 additions and 2 deletions

View File

@ -136,6 +136,9 @@ eekboard_context_service_real_create_keyboard (EekboardContextService *self,
}
}
keyboard = eek_keyboard_new (self, layout, CSW, CSH);
if (!keyboard) {
g_error("Failed to create a keyboard");
}
g_object_unref (layout);
struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);