diff options
author | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-06 15:17:50 -0700 |
---|---|---|
committer | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-06 15:17:50 -0700 |
commit | a3658060de6c22d01ed0650cd09b78fe50ae6ba9 (patch) | |
tree | b542a61f8ef99312317917a9ddf984a047a19b43 | |
parent | 5715ad9cd6be9bdd41809f4ce08aa250363cb41e (diff) |
Removed '[' and ']' from the im_key list since they intefere with arrow key
inputs
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | im.h | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -88,6 +88,8 @@ ranger pageup/pagedown does not work when the im is turned on vim If the im is turned on, it will start in vreplace mode +TODO: + Smarter handling of escape code sequences to fix the above ------------------------------=[Acknowledgements]=------------------------------ I would like to thank jdh8 on github for creating the ibus-table format boshiamy file I used to make boshiamy.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++) { |