… | |
… | |
89 | delete keymap [i]; |
89 | delete keymap [i]; |
90 | } |
90 | } |
91 | } |
91 | } |
92 | |
92 | |
93 | void |
93 | void |
94 | keyboard_manager::register_user_translation (KeySym keysym, unsigned int state, const wchar_t *ws) |
94 | keyboard_manager::register_action (KeySym keysym, unsigned int state, const wchar_t *ws) |
95 | { |
95 | { |
96 | char *translation = rxvt_wcstoutf8 (ws); |
96 | char *translation = rxvt_wcstoutf8 (ws); |
97 | |
97 | |
98 | keysym_t *key = new keysym_t; |
98 | keysym_t *key = new keysym_t; |
99 | |
99 | |
… | |
… | |
150 | { |
150 | { |
151 | if (strncmp (str, "command:", 8) == 0) |
151 | if (strncmp (str, "command:", 8) == 0) |
152 | term->cmdbuf_append (str + 8, strlen (str) - 8); |
152 | term->cmdbuf_append (str + 8, strlen (str) - 8); |
153 | else if (strncmp (str, "string:", 7) == 0) |
153 | else if (strncmp (str, "string:", 7) == 0) |
154 | term->tt_write_user_input (colon + 1, strlen (colon + 1)); |
154 | term->tt_write_user_input (colon + 1, strlen (colon + 1)); |
155 | else if (strncmp (str, "perl:", 8) == 0) |
155 | else if (strncmp (str, "perl:", 5) == 0) |
156 | HOOK_INVOKE ((term, HOOK_USER_COMMAND, DT_STR, colon + 1, DT_END)); |
156 | HOOK_INVOKE ((term, HOOK_USER_COMMAND, DT_STR, colon + 1, DT_END)); |
157 | else |
157 | else |
158 | HOOK_INVOKE ((term, HOOK_KEYBOARD_DISPATCH, DT_STR_LEN, str, colon - str, DT_STR, colon + 1, DT_END)); |
158 | HOOK_INVOKE ((term, HOOK_KEYBOARD_DISPATCH, DT_STR_LEN, str, colon - str, DT_STR, colon + 1, DT_END)); |
159 | } |
159 | } |
160 | else |
160 | else |