summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-06 17:44:17 -0700
committerHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-06 17:44:17 -0700
commit230035379c64777cb49041bb1411925e3332a456 (patch)
tree0e00d1b3fc421971f02cabc4dc2de23d10508a04
parenta3658060de6c22d01ed0650cd09b78fe50ae6ba9 (diff)
Have it check for both types of backspace
-rw-r--r--im.h4
1 files changed, 4 insertions, 0 deletions
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) {