return KEY_SPACE;
if (isascii(sym))
return sym;
- if (sym > XK_Delete)
- return KEY_UNSET;
/* Special keys */
res = bsearch (&sym, tab, sizeof (tab) / sizeof (tab[0]), sizeof (tab[0]),
case XCB_KEY_RELEASE:
break;
- /*TODO: key mappings update*/
+ case XCB_MAPPING_NOTIFY:
+ {
+ xcb_mapping_notify_event_t *e = (xcb_mapping_notify_event_t *)ev;
+ msg_Dbg (ctx->obj, "refreshing keyboard mapping");
+ xcb_refresh_keyboard_mapping (ctx->syms, e);
+ break;
+ }
+
default:
return -1;
}