mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
987cb07a4f
commit
7786ce9c3d
1 changed files with 3 additions and 1 deletions
|
|
@ -57,7 +57,9 @@ export class Menu {
|
|||
}
|
||||
|
||||
private preventDefault(event: KeyboardEvent) {
|
||||
event.preventDefault();
|
||||
if (!hasClosestByClassName(event.target as Element, "b3-menu")) {
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
public remove() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue