From d523a4017d7029d97f63fc0926f2a2249cc9c4de Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 8 Apr 2021 22:45:08 +0200 Subject: Remove macro key as it conflicts with mouse tracking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- interactive-test.c | 1 - libterminput.c | 1 - libterminput.h | 1 - 3 files changed, 3 deletions(-) diff --git a/interactive-test.c b/interactive-test.c index a1101e4..2da5ae8 100644 --- a/interactive-test.c +++ b/interactive-test.c @@ -41,7 +41,6 @@ main(void) case LIBTERMINPUT_DOWN: printf("\t%s: %s\n", "key", "down"); break; case LIBTERMINPUT_RIGHT: printf("\t%s: %s\n", "key", "right"); break; case LIBTERMINPUT_BEGIN: printf("\t%s: %s\n", "key", "begin"); break; - case LIBTERMINPUT_MACRO: printf("\t%s: %s\n", "key", "macro"); break; case LIBTERMINPUT_TAB: printf("\t%s: %s\n", "key", "tab"); break; case LIBTERMINPUT_F1: printf("\t%s: %s\n", "key", "f1"); break; case LIBTERMINPUT_F2: printf("\t%s: %s\n", "key", "f2"); break; diff --git a/libterminput.c b/libterminput.c index 8fb1fb6..2068aaf 100644 --- a/libterminput.c +++ b/libterminput.c @@ -184,7 +184,6 @@ parse_sequence(union libterminput_input *input, struct libterminput_state *ctx) case 'F': input->keypress.key = LIBTERMINPUT_END; break; case 'G': input->keypress.key = LIBTERMINPUT_BEGIN; break; case 'H': input->keypress.key = LIBTERMINPUT_HOME; break; - case 'M': input->keypress.key = LIBTERMINPUT_MACRO; break; case 'P': input->keypress.key = LIBTERMINPUT_F1; break; case 'Q': input->keypress.key = LIBTERMINPUT_F2; break; case 'R': input->keypress.key = LIBTERMINPUT_F3; break; diff --git a/libterminput.h b/libterminput.h index f2f0374..313fd72 100644 --- a/libterminput.h +++ b/libterminput.h @@ -18,7 +18,6 @@ enum libterminput_key { LIBTERMINPUT_RIGHT, LIBTERMINPUT_LEFT, LIBTERMINPUT_BEGIN, /* keypad 5 without numlock */ - LIBTERMINPUT_MACRO, LIBTERMINPUT_TAB, /* backtab if with shift */ LIBTERMINPUT_F1, LIBTERMINPUT_F2, -- cgit v1.2.3-70-g09d2