mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-03 15:25:36 +08:00
feat: stop event propagation of input box to better fit certain websites like Notion (#106)
This commit is contained in:
@@ -11,6 +11,7 @@ export function InputBox({ onSubmit, enabled }) {
|
||||
})
|
||||
|
||||
const onKeyDown = (e) => {
|
||||
e.stopPropagation()
|
||||
if (e.keyCode === 13 && e.shiftKey === false) {
|
||||
e.preventDefault()
|
||||
if (!value) return
|
||||
|
||||
Reference in New Issue
Block a user