diff options
author | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-06 17:44:17 -0700 |
---|---|---|
committer | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-06 17:44:17 -0700 |
commit | 230035379c64777cb49041bb1411925e3332a456 (patch) | |
tree | 0e00d1b3fc421971f02cabc4dc2de23d10508a04 | |
parent | a3658060de6c22d01ed0650cd09b78fe50ae6ba9 (diff) |
Have it check for both types of backspace
-rw-r--r-- | im.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |