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

Method key

crates/opencode-tui/src/context/keybind.rs:62–67  ·  view source on GitHub ↗
(code: KeyCode)

Source from the content-addressed store, hash-verified

60 }
61
62 pub fn key(code: KeyCode) -> Self {
63 Self {
64 code,
65 modifiers: KeyModifiers::empty(),
66 }
67 }
68
69 pub fn ctrl(code: KeyCode) -> Self {
70 Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected