mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Re-enable esc to cancel message edit
This commit is contained in:
@@ -69,12 +69,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const keydown = (event:KeyboardEvent) => {
|
const keydown = (event:KeyboardEvent) => {
|
||||||
// if (event.key === 'Escape') {
|
if (event.key === 'Escape') {
|
||||||
// event.stopPropagation()
|
event.stopPropagation()
|
||||||
// event.preventDefault()
|
event.preventDefault()
|
||||||
// message.content = original
|
message.content = original
|
||||||
// editing = false
|
editing = false
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const scrollToMessage = (uuid:string | string[] | undefined) => {
|
const scrollToMessage = (uuid:string | string[] | undefined) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user