mirror of
https://github.com/tiennm99/exchange-rate-export.git
synced 2026-10-11 03:13:21 +00:00
feat: add Enter key shortcut to trigger fetch
This commit is contained in:
1 parent
ea2f3dafcc
commit
2132d97067
1 file changed
+1
@@ -205,6 +205,7 @@ export default function ExchangeRateViewer() {
|
||||
<div
|
||||
className="rounded-xl p-5 mb-6"
|
||||
style={{ background: "var(--card-bg)", border: "1px solid var(--card-border)" }}
|
||||
onKeyDown={(e) => { if (e.key === "Enter" && !isLoading) handleFetch(); }}
|
||||
>
|
||||
<div className="flex flex-col gap-4">
|
||||
{/* Inputs row */}
|
||||
|
||||
Reference in new issue
Block a user