From d06bb0222f8ece1ffb21d67267c974c45b433e40 Mon Sep 17 00:00:00 2001 From: Saul-Mirone Date: Mon, 26 May 2025 06:42:02 +0000 Subject: [PATCH] fix: codebar language search hotkey conflict (#12522) Closes: BS-3395 ## Summary by CodeRabbit - **Bug Fixes** - Improved keyboard input handling in filterable lists to prevent unintended interactions when using arrow keys, Enter, or Escape. --- blocksuite/affine/components/src/filterable-list/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/blocksuite/affine/components/src/filterable-list/index.ts b/blocksuite/affine/components/src/filterable-list/index.ts index d7e8195f7..ccdb25eb3 100644 --- a/blocksuite/affine/components/src/filterable-list/index.ts +++ b/blocksuite/affine/components/src/filterable-list/index.ts @@ -92,6 +92,7 @@ export class FilterableListComponent extends WithDisposable( const isFlip = !!this.placement?.startsWith('top'); const _handleInputKeydown = (ev: KeyboardEvent) => { + ev.stopPropagation(); switch (ev.key) { case 'ArrowUp': { ev.preventDefault();