mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-22 20:41:50 +08:00
fix: when press the ArrowRight, the web crash
This commit is contained in:
@@ -60,7 +60,12 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
|
|||||||
shouldFilter={false}
|
shouldFilter={false}
|
||||||
//Handle KeyboardEvent conflicts with blocksuite
|
//Handle KeyboardEvent conflicts with blocksuite
|
||||||
onKeyDown={(e: React.KeyboardEvent) => {
|
onKeyDown={(e: React.KeyboardEvent) => {
|
||||||
if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
|
if (
|
||||||
|
e.key === 'ArrowDown' ||
|
||||||
|
e.key === 'ArrowUp' ||
|
||||||
|
e.key === 'ArrowLeft' ||
|
||||||
|
e.key === 'ArrowRight'
|
||||||
|
) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user