aboutsummaryrefslogtreecommitdiff
path: root/evspy-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'evspy-core.c')
-rw-r--r--evspy-core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/evspy-core.c b/evspy-core.c
index ec41f1e..b33fd27 100644
--- a/evspy-core.c
+++ b/evspy-core.c
@@ -187,11 +187,9 @@ static void evspy_event(struct input_handle *handle, unsigned int type,
} else if (code == KEY_BACKSPACE && value == EVS_VAL_PRESS) {
evs_backspace();
return;
- }
// Special/unknown keys (alt, ctrl, esc, shift, etc)
- if (unlikely(code >= sizeof(map)) ||
- (map[code] == '.' && likely(code != KEY_DOT))) {
+ } else if (code >= sizeof(map) || (map[code] == '.' && likely(code != KEY_DOT))) {
special_char(code, value);
// "Immediate" keys (alphanumeric + some symbols)