(active: ActiveKey<Renderable, KeyEvent>)
| 112 | } |
| 113 | |
| 114 | function activeKeyLabel(active: ActiveKey<Renderable, KeyEvent>) { |
| 115 | if (active.continues) return text(active.tokenName) ?? text(active.display) ?? UNKNOWN |
| 116 | return ( |
| 117 | text(active.commandAttrs?.title) ?? text(active.bindingAttrs?.desc) ?? text(active.commandAttrs?.desc) ?? UNKNOWN |
| 118 | ) |
| 119 | } |
| 120 | |
| 121 | function activeKeyGroup(active: ActiveKey<Renderable, KeyEvent>) { |
| 122 | if (active.continues) return "System" |
no test coverage detected