Method
handle_text_input
(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
Tested by
no test coverage detected