MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / start

Method start

crates/opencode-tui/src/context/keybind.rs:22–26  ·  view source on GitHub ↗
(&mut self, key: KeyCode)

Source from the content-addressed store, hash-verified

20 }
21
22 pub fn start(&mut self, key: KeyCode) {
23 self.active = true;
24 self.start_time = Some(Instant::now());
25 self.leader_key = Some(key);
26 }
27
28 pub fn check_timeout(&mut self) -> bool {
29 if let Some(start) = self.start_time {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected