add ability to disable input temporarily in the TUI. (#8876)

We will disable input while the elevated sandbox setup is running.
This commit is contained in:
iceweasel-oai
2026-01-07 20:56:48 -08:00
committed by GitHub
parent 75076aabfe
commit ccba737d26
4 changed files with 166 additions and 4 deletions

View File

@@ -264,6 +264,16 @@ impl BottomPane {
self.request_redraw();
}
#[allow(dead_code)]
pub(crate) fn set_composer_input_enabled(
&mut self,
enabled: bool,
placeholder: Option<String>,
) {
self.composer.set_input_enabled(enabled, placeholder);
self.request_redraw();
}
pub(crate) fn clear_composer_for_ctrl_c(&mut self) {
self.composer.clear_for_ctrl_c();
self.request_redraw();