MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SignListGlobalHotkeys

Method SignListGlobalHotkeys

src/signs_gui.cpp:320–326  ·  view source on GitHub ↗

* Handler for global hotkeys of the SignListWindow. * @param hotkey Hotkey * @return ES_HANDLED if hotkey was accepted. */

Source from the content-addressed store, hash-verified

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),

Callers

nothing calls this directly

Calls 2

ShowSignListFunction · 0.85
OnHotkeyMethod · 0.45

Tested by

no test coverage detected