mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
Merge pull request #1713 from QwenLM/fix/enter-submit
feat(paste): add large paste placeholder and fix enter-submit on macOS
This commit is contained in:
commit
a6885ccb4d
3 changed files with 444 additions and 7 deletions
|
|
@ -61,6 +61,7 @@ export type KeypressHandler = (key: Key) => void;
|
|||
interface KeypressContextValue {
|
||||
subscribe: (handler: KeypressHandler) => void;
|
||||
unsubscribe: (handler: KeypressHandler) => void;
|
||||
pasteWorkaround: boolean;
|
||||
}
|
||||
|
||||
const KeypressContext = createContext<KeypressContextValue | undefined>(
|
||||
|
|
@ -801,7 +802,9 @@ export function KeypressProvider({
|
|||
]);
|
||||
|
||||
return (
|
||||
<KeypressContext.Provider value={{ subscribe, unsubscribe }}>
|
||||
<KeypressContext.Provider
|
||||
value={{ subscribe, unsubscribe, pasteWorkaround }}
|
||||
>
|
||||
{children}
|
||||
</KeypressContext.Provider>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue