Explorar el Código

Call event.preventDefault on the "full project search" keyboard shortcut (#23147)

GitOrigin-RevId: 7cd7b2fa3eaf978377fc6f402bce92229fda2c51
Alf Eaton hace 1 año
padre
commit
8f11bc6270
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      services/web/frontend/js/shared/context/layout-context.tsx

+ 1 - 0
services/web/frontend/js/shared/context/layout-context.tsx

@@ -141,6 +141,7 @@ export const LayoutProvider: FC = ({ children }) => {
         event.key === 'f'
       ) {
         if (isSplitTestEnabled('full-project-search')) {
+          event.preventDefault()
           setProjectSearchIsOpen(true)
         }
       }