* Handler for global hotkeys of the SignListWindow. * @param hotkey Hotkey * @return ES_HANDLED if hotkey was accepted. */
| 318 | * @return ES_HANDLED if hotkey was accepted. |
| 319 | */ |
| 320 | static EventState SignListGlobalHotkeys(int hotkey) |
| 321 | { |
| 322 | if (_game_mode == GM_MENU) return ES_NOT_HANDLED; |
| 323 | Window *w = ShowSignList(); |
| 324 | if (w == nullptr) return ES_NOT_HANDLED; |
| 325 | return w->OnHotkey(hotkey); |
| 326 | } |
| 327 | |
| 328 | static inline HotkeyList hotkeys{"signlist", { |
| 329 | Hotkey('F', "focus_filter_box", WID_SIL_FILTER_TEXT), |
nothing calls this directly
no test coverage detected