ARGSUSED */
| 297 | |
| 298 | /* ARGSUSED */ |
| 299 | void |
| 300 | algn_key(Widget w, XEvent *event, String *params, Cardinal *num_params) |
| 301 | { |
| 302 | char ch, *mark; |
| 303 | static char algnchars[] = "LNC"; |
| 304 | |
| 305 | nhUse(w); |
| 306 | nhUse(params); |
| 307 | nhUse(num_params); |
| 308 | |
| 309 | ch = key_event_to_char((XKeyEvent *) event); |
| 310 | if (ch == '\0') { /* don't accept nul char/modifier event */ |
| 311 | /* don't beep */ |
| 312 | return; |
| 313 | } |
| 314 | mark = strchr(algnchars, ch); |
| 315 | if (!mark) |
| 316 | mark = strchr(algnchars, highc(ch)); |
| 317 | if (!mark) { |
| 318 | if (strchr(ps_randchars, ch)) |
| 319 | ps_selected = PS_RANDOM; |
| 320 | else if (strchr(ps_quitchars, ch)) |
| 321 | ps_selected = PS_QUIT; |
| 322 | else { |
| 323 | X11_nhbell(); /* no such alignment */ |
| 324 | return; |
| 325 | } |
| 326 | } else |
| 327 | ps_selected = (int) (mark - algnchars); |
| 328 | exit_x_event = TRUE; |
| 329 | } |
| 330 | |
| 331 | int plsel_n_races, plsel_n_roles; |
| 332 | Widget *plsel_race_radios = (Widget *) 0; |
nothing calls this directly
no test coverage detected