summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-07-25 17:08:05 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-07-25 17:45:13 +0200
commitf94d349f523905623124e685e8de8ac64f24d18e (patch)
tree25c37e3cbfda1d6b1efb50e533813248eedc5a5f
parent32af25ebb93abd2f8c48713ebc46be5965771a2d (diff)
ecore_wl2: also add the del control code
otherwise we are sending the controlcode for delete, which is wrong. This fixes the backspace on delete problem.
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index baceb92330..c3171792c3 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -421,7 +421,9 @@ _ecore_wl2_input_symbol_rep_find(xkb_keysym_t keysym, char *buffer, int size, un
421 n = xkb_keysym_to_utf8(keysym, buffer, size); 421 n = xkb_keysym_to_utf8(keysym, buffer, size);
422 422
423 /* check if we are a control code */ 423 /* check if we are a control code */
424 if (n > 0 && !(buffer[0] > 0x0 && buffer[0] < 0x20)) 424 if (n > 0 && !(
425 (buffer[0] > 0x0 && buffer[0] < 0x20) || /* others 0x0 to 0x1F control codes */
426 buffer[0] == 0x7F)) /*delete control code */
425 return; 427 return;
426 428
427 if (xkb_keysym_get_name(keysym, buffer, size) != 0) 429 if (xkb_keysym_get_name(keysym, buffer, size) != 0)