refactor flowchart
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-04-11 02:14:53 -06:00
parent 8521c67e68
commit 1f18f363eb
5 changed files with 31 additions and 14 deletions

View File

@@ -114,7 +114,11 @@ const handleClear = () => {
// 键盘事件
const handleKeyDown = (event: KeyboardEvent) => {
if (event.target instanceof HTMLInputElement) return
if (
event.target instanceof HTMLInputElement ||
event.target instanceof HTMLTextAreaElement
)
return
if (event.key === "Delete" || event.key === "Backspace") {
deleteSelected()