summaryrefslogtreecommitdiff
path: root/im.h
diff options
context:
space:
mode:
authorHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-06 15:17:50 -0700
committerHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-06 15:17:50 -0700
commita3658060de6c22d01ed0650cd09b78fe50ae6ba9 (patch)
treeb542a61f8ef99312317917a9ddf984a047a19b43 /im.h
parent5715ad9cd6be9bdd41809f4ce08aa250363cb41e (diff)
Removed '[' and ']' from the im_key list since they intefere with arrow key
inputs
Diffstat (limited to 'im.h')
-rw-r--r--im.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/im.h b/im.h
index f029fb1..3ded146 100644
--- a/im.h
+++ b/im.h
@@ -19,7 +19,7 @@
#define ESCAPE_KEY '`'
//Vertical Tab Ctrl+K
#define TOGGLE_KEY 0x0B
-#define IM_KEY_RANGE_LEN 7
+#define IM_KEY_RANGE_LEN 5
//Array of Input method key ranges(inclusive) seperate from the above
char im_key_ranges[IM_KEY_RANGE_LEN][2] = {
@@ -28,8 +28,6 @@ char im_key_ranges[IM_KEY_RANGE_LEN][2] = {
{' ',' '},
{',',','},
{'.','.'},
- {'[','['},
- {']',']'},
};
int is_im_key(char input) {
for (int i = 0; i < IM_KEY_RANGE_LEN; i++) {