From 050b87527d311869b8c59db59687fd9d44f0404a Mon Sep 17 00:00:00 2001 From: Mark Edgar Date: Wed, 1 Jan 2014 15:16:39 +0100 Subject: [PATCH 1/2] Use ERR instead of 0 for modifier-less keybindings. This allows C-space (NUL) as a normal key or modifier. --- dvtm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvtm.c b/dvtm.c index c0fe60b..6aa3447 100644 --- a/dvtm.c +++ b/dvtm.c @@ -180,6 +180,7 @@ static unsigned int waw, wah, wax, way; static Client *clients = NULL; static char *title; #define COLOR(fg, bg) COLOR_PAIR(vt_color_reserve(fg, bg)) +#define NOMOD ERR #include "config.h" @@ -1399,7 +1400,7 @@ main(int argc, char *argv[]) { handle_mouse(); } else if (is_modifier(code)) { mod = code; - } else if ((key = keybinding(0, code))) { + } else if ((key = keybinding(ERR, code))) { key->action.cmd(key->action.args); } else if (sel && vt_copymode(sel->term)) { vt_copymode_keypress(sel->term, code); -- 1.8.5.2