diff --git a/src/components/CashuWallet.tsx b/src/components/CashuWallet.tsx index d83b3c5..322bc88 100644 --- a/src/components/CashuWallet.tsx +++ b/src/components/CashuWallet.tsx @@ -617,7 +617,7 @@ export function CashuWallet() { return ( <> -
+
{/* ======================================================================== diff --git a/src/components/wallet/ReceiveCard.tsx b/src/components/wallet/ReceiveCard.tsx index 3792fbb..0abe497 100644 --- a/src/components/wallet/ReceiveCard.tsx +++ b/src/components/wallet/ReceiveCard.tsx @@ -31,7 +31,7 @@ export function ReceiveCard({ Receive - + {mode === 'tokens' ? 'Enter Cashu token to redeem' : 'Deposit funds with Lightning' @@ -51,6 +51,11 @@ export function ReceiveCard({ placeholder="cashuBo2Ft..." value={tokenInput} onChange={(e) => setTokenInput(e.target.value)} + onKeyDown={(e) => { + if (e.key === 'Enter' && tokenInput.trim() && activeMintUrl && !isLoading) { + onReceive(); + } + }} className="flex-1" disabled={!activeMintUrl} /> @@ -73,6 +78,11 @@ export function ReceiveCard({ type="number" value={quoteAmount} onChange={(e) => setQuoteAmount(e.target.value)} + onKeyDown={(e) => { + if (e.key === 'Enter' && quoteAmount && activeMintUrl && !isLoading) { + onReceive(); + } + }} disabled={!activeMintUrl} />