//! Key input mode: raw text capture overlay used for one-off key/text prompts. use crate::app::state::rest::AppStateRest; /// Replace the input buffer with the given text and mark state dirty. pub fn handle_key_text(state: &mut AppStateRest, text: String) { state.input.buffer = text; state.dirty = true; }