feat: remove InsertChar action and inline character handling; streamline input processing and autocomplete triggers
This commit is contained in:
@@ -40,7 +40,6 @@ pub enum Action {
|
||||
ForceQuit,
|
||||
SwitchMode(ModeKind),
|
||||
SubmitInput(String),
|
||||
InsertChar(char),
|
||||
DeleteChar,
|
||||
DeleteCharRight,
|
||||
CursorLeft,
|
||||
@@ -136,10 +135,6 @@ pub fn apply_action(state: &mut AppStateRest, action: Action) {
|
||||
spawn_turn(state);
|
||||
state.dirty = true;
|
||||
}
|
||||
Action::InsertChar(c) => {
|
||||
state.input.insert(c);
|
||||
state.dirty = true;
|
||||
}
|
||||
Action::DeleteChar => {
|
||||
state.input.delete_left();
|
||||
state.dirty = true;
|
||||
|
||||
Reference in New Issue
Block a user