mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Call event.preventDefault on the "full project search" keyboard shortcut (#23147)
GitOrigin-RevId: 7cd7b2fa3eaf978377fc6f402bce92229fda2c51
This commit is contained in:
@@ -141,6 +141,7 @@ export const LayoutProvider: FC = ({ children }) => {
|
|||||||
event.key === 'f'
|
event.key === 'f'
|
||||||
) {
|
) {
|
||||||
if (isSplitTestEnabled('full-project-search')) {
|
if (isSplitTestEnabled('full-project-search')) {
|
||||||
|
event.preventDefault()
|
||||||
setProjectSearchIsOpen(true)
|
setProjectSearchIsOpen(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user