summaryrefslogtreecommitdiff
path: root/src/lib/elput
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elput')
-rw-r--r--src/lib/elput/elput_evdev.c10
1 files changed, 0 insertions, 10 deletions
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)
606static void 606static void
607_elput_symbol_rep_find(xkb_keysym_t keysym, char *buffer, int size, unsigned int code) 607_elput_symbol_rep_find(xkb_keysym_t keysym, char *buffer, int size, unsigned int code)
608{ 608{
609 int n = 0;
610
611 n = xkb_keysym_to_utf8(keysym, buffer, size);
612
613 /* check if we are a control code */
614 if (n > 0 && !(
615 (buffer[0] > 0x0 && buffer[0] < 0x20) || /* others 0x0 to 0x1F control codes */
616 buffer[0] == 0x7F)) /*delete control code */
617 return;
618
619 if (xkb_keysym_get_name(keysym, buffer, size) != 0) 609 if (xkb_keysym_get_name(keysym, buffer, size) != 0)
620 return; 610 return;
621 611