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:
pomelo 2026-02-06 17:44:14 +08:00 committed by GitHub
commit a6885ccb4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 444 additions and 7 deletions

View file

@ -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>
);