summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjhyuni.kang <jhyuni.kang@samsung.com>2015-05-07 09:24:54 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-07 09:24:54 -0400
commit5c5f4580d2ed5208b4b8342aaa8d33e9d6953baa (patch)
tree87139d5c957dacb4299be9921efeba53f751cbce /src/lib
parentb1eb5b56a627929f1f43ebd167c92e76eefe0847 (diff)
Check a key repeat using xkb ruled keycode
Summary: ecore_wayland get a key information using libxkbcommon's functions. Also generate key repeat check xkb keymap's information using xkb_keymap_key_repeats(). But xkb rules reflect X broken keycodes, so offset by 8. In ecore_wayland backend, other xkb funtions using offset keycode but only use default keycode to check key repeat. So I fix it to use xkb ruled keycode. Test Plan: Long press a key and watch repeated key events generate well Reviewers: devilhorns, raster Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2475
Diffstat (limited to 'src/lib')
-rwxr-xr-x[-rw-r--r--]src/lib/ecore_wayland/ecore_wl_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index 1792d7f..b0297e9 100644..100755
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -829,7 +829,7 @@ _ecore_wl_input_cb_keyboard_key(void *data, struct wl_keyboard *keyboard EINA_UN
829 else 829 else
830 ecore_event_add(ECORE_EVENT_KEY_UP, e, NULL, NULL); 830 ecore_event_add(ECORE_EVENT_KEY_UP, e, NULL, NULL);
831 831
832 if (!xkb_keymap_key_repeats(input->xkb.keymap, keycode)) return; 832 if (!xkb_keymap_key_repeats(input->xkb.keymap, code)) return;
833 833
834 if ((!state) && (keycode == input->repeat.key)) 834 if ((!state) && (keycode == input->repeat.key))
835 { 835 {