mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
fix: codebar language search hotkey conflict (#12522)
Closes: BS-3395 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved keyboard input handling in filterable lists to prevent unintended interactions when using arrow keys, Enter, or Escape. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -92,6 +92,7 @@ export class FilterableListComponent<Props = unknown> extends WithDisposable(
|
|||||||
const isFlip = !!this.placement?.startsWith('top');
|
const isFlip = !!this.placement?.startsWith('top');
|
||||||
|
|
||||||
const _handleInputKeydown = (ev: KeyboardEvent) => {
|
const _handleInputKeydown = (ev: KeyboardEvent) => {
|
||||||
|
ev.stopPropagation();
|
||||||
switch (ev.key) {
|
switch (ev.key) {
|
||||||
case 'ArrowUp': {
|
case 'ArrowUp': {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user