Keyboard shortcuts: the Help button works on the title screen; MCP knows the new actions

Before a game starts the click handler only runs allowlisted actions, so Help's
Keyboard shortcuts button did nothing on the title screen. Allow it, and close
the list with helpClose, so ? returns to the title instead of leaving an empty
map. popStep, zoomStep and keys are views for the MCP server.
This commit is contained in:
Frederic Jung 2026-11-03 11:32:12 +01:00
parent 9cf90d0ad0
commit 48ba0048da
No known key found for this signature in database
4 changed files with 18 additions and 2 deletions

View file

@ -547,6 +547,9 @@ const API_VIEW={
findOpen:{args:[],doc:'Open the city finder (the 🔍 in the top bar).'},
findGo:{args:[['city','cityId']],doc:'Close the finder and jump to a city.'},
routingOpen:{args:[],doc:'Open the Routing & DDoS window: backbone, Auto-TE and DDoS settings (the button at the top of the NOC tab).'},
popStep:{args:[['d','step']],doc:'Select and centre the previous (-1) or next (1) of your POPs, in name order, wrapping around (the [ and ] keys).'},
zoomStep:{args:[['d','step']],doc:'Zoom the map out (-1) or in (1) around its middle (the - and = keys).'},
keys:{args:[],doc:'Open the list of keyboard shortcuts (the ? key).'},
opsOpen:{args:[],doc:'Open the Ops sheet: the NOC intern\'s mood, weekly shift report and standing orders.'},
opsCity:{args:[['v','cityId',false]],doc:'Show one POP\'s standing-order exceptions in the Ops sheet.'},
utilities:{args:[['city','cityId',false]],doc:'Open the utilities sheet: route servers, the redundancy kit, caches and bulk peering, for one city or the whole network.'},