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