Explorar o código

fix: allow searching with space

Fela Maslen %!s(int64=5) %!d(string=hai) anos
pai
achega
28b45ef4b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gmus-web/src/components/ui/cmus/search.tsx

+ 1 - 1
gmus-web/src/components/ui/cmus/search.tsx

@@ -17,7 +17,7 @@ export const Search: React.FC = () => {
         dispatchUI(searched(null));
       } else if (event.key === 'Backspace') {
         setTerm((last) => last.substring(0, last.length - 1));
-      } else if (/^\w$/.test(event.key)) {
+      } else if (/^[\w\s]$/.test(event.key)) {
         setTerm((last) => `${last}${event.key}`);
       }
     };