Refactor textarea input handling for Firefox compatibility

This commit is contained in:
kwaroran
2024-09-24 00:29:40 +09:00
parent d91ae6d783
commit 054c8af63e

View File

@@ -262,6 +262,11 @@
break
}
}
if(e.key === 'Enter' && isFirefox){
e.stopPropagation()
e.preventDefault()
insertContent('\n')
}
}
$: optiValue = value