From 104b3ffd4fe23ab530e728a7ef855cfc7d3c5595 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Tue, 4 Feb 2020 20:56:27 -0500 Subject: Model keyCtrl like keyMeta --- ui.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index 172120b..8f813b4 100644 --- a/ui.c +++ b/ui.c @@ -497,9 +497,9 @@ static void keyMeta(wchar_t ch) { } } -static void keyChar(wchar_t ch) { +static void keyCtrl(wchar_t ch) { switch (ch) { - break; case CTRL(L'L'): clearok(curscr, true); + break; case L'L': clearok(curscr, true); } } @@ -515,8 +515,10 @@ void uiRead(void) { continue; } else if (meta) { keyMeta(ch); + } else if (iswcntrl(ch)) { + keyCtrl(ch ^ L'@'); } else { - keyChar(ch); + // TODO: Insert. } meta = false; } -- cgit 1.4.1-2-gfad0