fix: QR code scanning stop on "\n"
This commit is contained in:
@@ -21,7 +21,7 @@ const ScanningModal = ({
|
||||
useWindowEvent("keydown", (event) => {
|
||||
event.preventDefault();
|
||||
setInputValues(prevState => prevState + event.key);
|
||||
if (event.key === "Enter") {
|
||||
if (event.key === "\n" || event.key === "Enter") {
|
||||
onScan(inputValues);
|
||||
setInputValues("");
|
||||
if (closeOnScan) {
|
||||
|
||||
Reference in New Issue
Block a user