From 77b9217467a2dae534c93b2f3e787ca6ba34c52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bosi?= <71827178+bosiraphael@users.noreply.github.com> Date: Thu, 10 Jul 2025 16:55:23 +0200 Subject: [PATCH] Fix backspace shortcut preventing text deletion in command menu search bar (#13157) Before: https://github.com/user-attachments/assets/4d3ba0fb-9655-4f06-af14-2a4cab737a4a After: https://github.com/user-attachments/assets/f1bbf360-a09f-4440-9d05-2c9dc1f41f1f --- .../src/modules/command-menu/hooks/useCommandMenuHotKeys.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts b/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts index b648bb9f2..5e5a8e5bf 100644 --- a/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts +++ b/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts @@ -117,5 +117,8 @@ export const useCommandMenuHotKeys = () => { goBackFromCommandMenu, setGlobalCommandMenuContext, ], + options: { + preventDefault: false, + }, }); };