Fix: 修复提交表单不能按回车
This commit is contained in:
parent
735b37a617
commit
dcedc4b99c
|
|
@ -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="切换大小写敏感"
|
||||
|
|
|
|||
Loading…
Reference in New Issue