From 230035379c64777cb49041bb1411925e3332a456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haoran=20S=2E=20Diao=20=28=E5=88=81=E6=B5=A9=E7=84=B6=29?= <0@hairydiode.xyz> Date: Sat, 6 Sep 2025 17:44:17 -0700 Subject: Have it check for both types of backspace --- im.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'im.h') diff --git a/im.h b/im.h index 3ded146..e3b2b65 100644 --- a/im.h +++ b/im.h @@ -12,7 +12,10 @@ #include "boshiamy.h" #define ENTER_KEY 0x0D +//Two different backspace keys are defined, to disable one set both macros to +//the one you desire #define BACKSPACE_KEY 0x7F +#define BACKSPACE_KEY_2 0x08 //setting it to the actual escape character interferes with arrow keys and //whatnot //#define ESCAPE_KEY 0x1B @@ -141,6 +144,7 @@ int update_im_state(char input, char * output) { clear_im_buffer(); return tmp; break; + case BACKSPACE_KEY_2: //backspace case BACKSPACE_KEY: if (im_buffer_pos > 0) { -- cgit v1.1