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

Method matches_keybind

crates/opencode-tui/src/app/app.rs:3127–3132  ·  view source on GitHub ↗
(&self, keybind_name: &str, key: KeyEvent)

Source from the content-addressed store, hash-verified

3125 }
3126
3127 fn matches_keybind(&self, keybind_name: &str, key: KeyEvent) -> bool {
3128 self.context
3129 .keybind
3130 .read()
3131 .match_key(keybind_name, key.code, key.modifiers)
3132 }
3133
3134 fn sync_command_palette_labels(&mut self) {
3135 let show_thinking = *self.context.show_thinking.read();

Callers 2

handle_eventMethod · 0.80
handle_dialog_keyMethod · 0.80

Calls 2

match_keyMethod · 0.80
readMethod · 0.80

Tested by

no test coverage detected