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

Method handle_sandbox_setting_confirm_delete_key

crates/openshell-tui/src/app.rs:1604–1615  ·  view source on GitHub ↗
(&mut self, key: KeyEvent)

Source from the content-addressed store, hash-verified

1602 }
1603
1604 fn handle_sandbox_setting_confirm_delete_key(&mut self, key: KeyEvent) {
1605 match key.code {
1606 KeyCode::Char('y') | KeyCode::Enter => {
1607 self.pending_sandbox_setting_delete = true;
1608 self.sandbox_confirm_setting_delete = None;
1609 }
1610 KeyCode::Esc | KeyCode::Char('n') => {
1611 self.sandbox_confirm_setting_delete = None;
1612 }
1613 _ => {}
1614 }
1615 }
1616
1617 fn handle_draft_key(&mut self, key: KeyEvent) {
1618 // Approve-all confirmation modal intercepts all keys when open.

Callers 1

handle_keyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected