1
0
mirror of https://github.com/lencx/ChatGPT.git synced 2024-10-01 01:06:13 -04:00

Fix Chinese input method Enter on Safari

This commit is contained in:
cyhhao 2023-02-14 16:10:44 +08:00
parent 0871824093
commit 95f8c16be0

View File

@ -101,6 +101,11 @@ async function init() {
}
});
// Fix Chinese input method "Enter" on Safari
document.addEventListener("keydown",(e)=>{
if(e.keyCode==229) e.stopPropagation();
}, true)
if (window.location.host === 'chat.openai.com') {
window.__sync_prompts = async function() {
await invoke('sync_prompts', { time: Date.now() });