LOG("Unknown ncurses key 0o%o", c);
sprintf(buf, "%sNcurs-%o", a, c);
} else if (strstarts(n, ":Focus-"))
- /* Ignore focus changes for now */;
+ /* Ignore focus changes for now */
+ buf[0] = 0;
else
strcat(strcpy(buf, a), n);
} else {
}
dd->last_event = time(NULL);
- record_key(p, buf);
- call("Keystroke", p, 0, NULL, buf);
+ if (buf[0]) {
+ record_key(p, buf);
+ call("Keystroke", p, 0, NULL, buf);
+ }
}
static void do_send_mouse(struct pane *p safe, int x, int y, char *cmd safe,