ecore_wl2: also add the del control code
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Mon, 25 Jul 2016 15:08:05 +0000 (17:08 +0200)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Mon, 25 Jul 2016 15:45:13 +0000 (17:45 +0200)
otherwise we are sending the controlcode for delete, which is wrong.

This fixes the backspace on delete problem.

src/lib/ecore_wl2/ecore_wl2_input.c

index baceb92..c317179 100644 (file)
@@ -421,7 +421,9 @@ _ecore_wl2_input_symbol_rep_find(xkb_keysym_t keysym, char *buffer, int size, un
     n = xkb_keysym_to_utf8(keysym, buffer, size);
 
     /* check if we are a control code */
-    if (n > 0 && !(buffer[0] > 0x0 && buffer[0] < 0x20))
+    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)