Merge pull request #6 from ikurt234outlook/fix/esc-paste-now
fix(input): Esc 绑定改为 paste_now,避免误弹多行粘贴确认
This commit is contained in:
commit
784817795e
1 file changed
+4
-1
@@ -223,7 +223,10 @@ impl<T: EventListener> Execute<T> for Action {
|
||||
#[inline]
|
||||
fn execute<A: ActionContext<T>>(&self, ctx: &mut A) {
|
||||
match self {
|
||||
Action::Esc(s) => ctx.paste(s, false),
|
||||
// Esc/chars bindings are keystroke sequences (e.g. Shift+Enter → ESC+CR for
|
||||
// Claude Code multiline), not clipboard pastes. paste() gates on \r/\n and
|
||||
// would pop the multi-line confirm modal, so write through paste_now.
|
||||
Action::Esc(s) => ctx.paste_now(s, false),
|
||||
Action::Command(program) => ctx.spawn_daemon(program.program(), program.args()),
|
||||
Action::Hint(hint) => {
|
||||
ctx.display().hint_state.start(hint.clone());
|
||||
|
||||
Reference in new issue
Block a user