🐛 Fix Chinese input method Enter

This commit is contained in:
Tw93
2023-07-20 17:32:00 +08:00
parent f1e05e6b02
commit 69b0cc10af
5 changed files with 15 additions and 40 deletions

View File

@@ -163,6 +163,12 @@ document.addEventListener('DOMContentLoaded', () => {
} catch (e) {
console.log(e);
}
// Fix Chinese input method "Enter" on Safari
document.addEventListener('keydown', (e) => {
if (e.keyCode === 229) e.stopPropagation();
}, true);
});
function setDefaultZoom() {