feat: new lines checking for scanning modal
This commit is contained in:
		@@ -21,7 +21,7 @@ const ScanningModal = ({
 | 
			
		||||
    useWindowEvent("keydown", (event) => {
 | 
			
		||||
        event.preventDefault();
 | 
			
		||||
        setInputValues(prevState => prevState + event.key);
 | 
			
		||||
        if (event.key === "\n" || event.key === "Enter") {
 | 
			
		||||
        if (["\n", "\r", "Enter"].includes(event.key)) {
 | 
			
		||||
            onScan(inputValues);
 | 
			
		||||
            setInputValues("");
 | 
			
		||||
            if (closeOnScan) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user