five-on-it / apps/client/src/ui/phone-view / keysOf
Function: keysOf()
keysOf(
ui,phone,buttons): (number|undefined)[]
Defined in: apps/client/src/ui/phone-view.ts:267
The digit each button of what shows answers to (1–9; none past nine), in buttonsOf's order: counted from the top, but on the Jobs page from the bottom (the panel stands on its bottom edge and that page's lists grow on top: an entry arriving there changes no other's number).
Parameters
ui
phone
{ apps: object[]; calls: object[]; camera?: { note?: "missed" | "subject" | "away" | "saved"; shots: number; }; contacts: object[]; has: boolean; messages: object[]; screen?: { app: string; buttons: object[]; form: object[]; kind: "keypad" | "app"; name: string; note?: string; noteKey?: "wrongCode" | "nothing"; source: "phone" | "world"; text: string; title?: string; }; talk?: { choices: object[]; dialogue: string; goesOn: boolean; line?: string; note?: string; speaker?: string; state: "ringing" | "talking"; via: "call" | "face"; with: string; }; type: "phone"; unread: number; waypoint?: { label?: string; x: number; z: number; }; } | undefined
buttons
readonly PhoneButton[]
Returns
(number | undefined)[]