Fix: 修复提交表单不能按回车

This commit is contained in:
奇趣保罗 2026-01-07 11:44:30 +08:00
parent 735b37a617
commit dcedc4b99c
1 changed files with 2 additions and 0 deletions

View File

@ -535,6 +535,7 @@ export default function Editor() {
<form className="mb-3 flex items-center gap-2" onSubmit={scrollToQuery}>
<Input placeholder="搜索翻译条目名称" value={query} onChange={(e) => setQuery(e.target.value)} />
<Button
type="button"
variant={fullMatch ? "default" : "outline"}
onClick={() => setFullMatch((v) => !v)}
title="切换全量匹配/模糊匹配"
@ -543,6 +544,7 @@ export default function Editor() {
{fullMatch ? "全量匹配" : "模糊匹配"}
</Button>
<Button
type="button"
variant={caseSensitive ? "default" : "outline"}
onClick={() => setCaseSensitive((v) => !v)}
title="切换大小写敏感"