mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 03:54:43 -07:00
Simplify paste handling (#16654)
This commit is contained in:
committed by
GitHub
parent
41369f67eb
commit
94d5ae541e
@@ -250,11 +250,10 @@ function bufferPaste(keypressHandler: KeypressHandler): KeypressHandler {
|
||||
|
||||
if (buffer.length > 0) {
|
||||
keypressHandler({
|
||||
name: '',
|
||||
name: 'paste',
|
||||
ctrl: false,
|
||||
meta: false,
|
||||
shift: false,
|
||||
paste: true,
|
||||
insertable: true,
|
||||
sequence: buffer,
|
||||
});
|
||||
@@ -357,7 +356,6 @@ function* emitKeys(
|
||||
ctrl: false,
|
||||
meta: false,
|
||||
shift: false,
|
||||
paste: true,
|
||||
insertable: true,
|
||||
sequence: decoded,
|
||||
});
|
||||
@@ -570,7 +568,6 @@ function* emitKeys(
|
||||
ctrl,
|
||||
meta,
|
||||
shift,
|
||||
paste: false,
|
||||
insertable: false,
|
||||
sequence: ESC,
|
||||
});
|
||||
@@ -592,7 +589,6 @@ function* emitKeys(
|
||||
ctrl,
|
||||
meta,
|
||||
shift,
|
||||
paste: false,
|
||||
insertable,
|
||||
sequence,
|
||||
});
|
||||
@@ -606,7 +602,6 @@ export interface Key {
|
||||
ctrl: boolean;
|
||||
meta: boolean;
|
||||
shift: boolean;
|
||||
paste: boolean;
|
||||
insertable: boolean;
|
||||
sequence: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user