Change-Id: I05d10e4ace459f757142408e74a68a3d58dd78df
ked->info.keyname = _xstrdup(kei.keyname);
ked->info.multiplicity = kei.multiplicity;
ked->info.hold_time = kei.hold_time;
- ked->keycode = _get_keycode_from_string(kei.keyname);
+ ked->keycode = e_comp_wl_input_keymap_keyname_to_keycode(kei.keyname);
ked->reply = eldbus_message_method_return_new(msg);
ked->conn = conn;
{
pair->keycode = key;
}
-}
-
-int _get_keycode_from_string(const char *key)
-{
- xkb_keysym_t keysym = xkb_keysym_from_name(key, XKB_KEYSYM_NO_FLAGS);
- keycode_map_entry pair = {keysym, 0};
-
- g_mutex_lock(&e_comp_wl->xkb.keymap_mutex);
- xkb_keymap_key_for_each(e_comp_wl->xkb.keymap, _find_keycode, &pair);
- g_mutex_unlock(&e_comp_wl->xkb.keymap_mutex);
-
- return pair.keycode;
-}
+}
\ No newline at end of file
int _get_window_angle(void);
void _transform_coordinates(int *ax, int *ay);
Ecore_Device * _get_device(Ecore_Device_Class klass);
-int _get_keycode_from_string(const char *key);
#endif