From 534a654eb7b72aec3d0d976f5ee6ced4f9f40b7a Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 28 Jan 2022 15:07:51 +0100 Subject: [PATCH] [term] typedef unsigned char term_event_modifier_T --- src/terminal/kbd.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/terminal/kbd.h b/src/terminal/kbd.h index b22ad6e6..e561b57b 100644 --- a/src/terminal/kbd.h +++ b/src/terminal/kbd.h @@ -37,7 +37,7 @@ typedef int32_t term_event_key_T; /** Values for term_event_keyboard.modifier and * interlink_event_keyboard.modifier */ -typedef enum { +enum term_event_modifier { KBD_MOD_NONE = 0, KBD_MOD_SHIFT = 1, KBD_MOD_CTRL = 2, @@ -48,7 +48,9 @@ typedef enum { * keystrokes that include it cannot be bound to any actions, * and ELinks will instead insert the characters if possible. */ KBD_MOD_PASTE = 8, -} term_event_modifier_T; +}; + +typedef unsigned char term_event_modifier_T; /** A key received from a terminal, with modifiers. */ struct term_event_keyboard {