MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / handle_text_input

Method handle_text_input

crates/openshell-tui/src/app.rs:2466–2474  ·  view source on GitHub ↗
(field: &mut String, key: KeyEvent)

Source from the content-addressed store, hash-verified

2464 // ------------------------------------------------------------------
2465
2466 fn handle_text_input(field: &mut String, key: KeyEvent) {
2467 match key.code {
2468 KeyCode::Char(c) => field.push(c),
2469 KeyCode::Backspace => {
2470 field.pop();
2471 }
2472 _ => {}
2473 }
2474 }
2475
2476 fn handle_command_key(&mut self, key: KeyEvent) {
2477 match key.code {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected