2026-07-12 11:28:39 +07:00
|
|
|
//! Key input mode: raw text capture overlay used for one-off key/text prompts.
|
|
|
|
|
|
2026-07-11 18:23:01 +07:00
|
|
|
use crate::app::state::rest::AppStateRest;
|
|
|
|
|
|
2026-07-12 11:28:39 +07:00
|
|
|
/// Replace the input buffer with the given text and mark state dirty.
|
2026-07-11 18:23:01 +07:00
|
|
|
pub fn handle_key_text(state: &mut AppStateRest, text: String) {
|
|
|
|
|
state.input.buffer = text;
|
|
|
|
|
state.dirty = true;
|
|
|
|
|
}
|