()
| 182 | } |
| 183 | function _temp() {} |
| 184 | export function useKeybindingContext() { |
| 185 | const ctx = useContext(KeybindingContext); |
| 186 | if (!ctx) { |
| 187 | throw new Error("useKeybindingContext must be used within KeybindingProvider"); |
| 188 | } |
| 189 | return ctx; |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Optional hook that returns undefined outside of KeybindingProvider. |
nothing calls this directly
no outgoing calls
no test coverage detected