diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2018-07-10 14:44:36 -0400 |
---|---|---|
committer | SangHyeon Jade Lee <sh10233.lee@samsung.com> | 2018-07-12 11:34:48 +0900 |
commit | 84d1dfe54a73c78aaaf3dae5c9b7f652c49fc4ac (patch) | |
tree | c8b49f223df034e0bdc4f4a55708c893523566d1 | |
parent | 19f80627b816b1c23c1cc980e37c64b105fbdac3 (diff) | |
download | efl-84d1dfe54a73c78aaaf3dae5c9b7f652c49fc4ac.tar.gz |
ecore_wl2&elput: correctly fill the key structure
Summary: the key structure has two fields key and keyname, those should be identical to the keystructures from x. the method xkb_keysym_to_utf8 however returns different values for keys like "minus" thus only relying on xkb_keysym_name files this issue.
Reviewers: eagleeye, devilhorns
Reviewed By: eagleeye
Subscribers: cedric, #committers, zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6520
-rw-r--r-- | src/lib/ecore_wl2/ecore_wl2_input.c | 10 | ||||
-rw-r--r-- | src/lib/elput/elput_evdev.c | 10 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c index 14de4dc9f0..ade74de234 100644 --- a/src/lib/ecore_wl2/ecore_wl2_input.c +++ b/src/lib/ecore_wl2/ecore_wl2_input.c @@ -592,16 +592,6 @@ in this Software without prior written authorization from The Open Group. static void _ecore_wl2_input_symbol_rep_find(xkb_keysym_t keysym, char *buffer, int size, unsigned int code) { - int n = 0; - - n = xkb_keysym_to_utf8(keysym, buffer, size); - - /* check if we are a control code */ - if (n > 0 && !( - (buffer[0] > 0x0 && buffer[0] <= 0x20) || /* others 0x0 to 0x20 control codes */ - buffer[0] == 0x7F)) /*delete control code */ - return; - if (xkb_keysym_get_name(keysym, buffer, size) != 0) return; diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c index 91bbbb2a81..635061a08c 100644 --- a/src/lib/elput/elput_evdev.c +++ b/src/lib/elput/elput_evdev.c @@ -606,16 +606,6 @@ process_key_press(xkb_keysym_t sym, Elput_Keyboard *kbd) static void _elput_symbol_rep_find(xkb_keysym_t keysym, char *buffer, int size, unsigned int code) { - int n = 0; - - n = xkb_keysym_to_utf8(keysym, buffer, size); - - /* check if we are a control code */ - if (n > 0 && !( - (buffer[0] > 0x0 && buffer[0] < 0x20) || /* others 0x0 to 0x1F control codes */ - buffer[0] == 0x7F)) /*delete control code */ - return; - if (xkb_keysym_get_name(keysym, buffer, size) != 0) return; |