| 3191 | }; |
| 3192 | |
| 3193 | boolean |
| 3194 | bind_specialkey(uchar key, const char *command) |
| 3195 | { |
| 3196 | int i; |
| 3197 | |
| 3198 | for (i = 0; i < SIZE(spkeys_binds); i++) { |
| 3199 | if (!spkeys_binds[i].name || strcmp(command, spkeys_binds[i].name)) |
| 3200 | continue; |
| 3201 | gc.Cmd.spkeys[spkeys_binds[i].nhkf] = key; |
| 3202 | return TRUE; |
| 3203 | } |
| 3204 | return FALSE; |
| 3205 | } |
| 3206 | |
| 3207 | staticfn const char * |
| 3208 | spkey_name(int nhkf) |