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

Method new

crates/opencode-tui/src/context/keybind.rs:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13impl LeaderKeyState {
14 pub fn new() -> Self {
15 Self {
16 active: false,
17 start_time: None,
18 leader_key: None,
19 }
20 }
21
22 pub fn start(&mut self, key: KeyCode) {
23 self.active = true;

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
register_defaultsMethod · 0.80

Tested by

no test coverage detected