Skip to content

Commit

Permalink
Merge pull request #499 from kjmjh/patch-4
Browse files Browse the repository at this point in the history
开始菜单收回(隐藏)
  • Loading branch information
NB-Group authored Dec 1, 2024
2 parents 54711a2 + aad5be7 commit 3490f1c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ page.addEventListener('mouseup', enableIframes);
page.addEventListener('touchend', enableIframes);
page.addEventListener('touchcancel', enableIframes);


page.addEventListener('click',(event)=>{
if($('#start-menu').hasClass('show')&&!$(event.target).closest('#start-menu').length){
hide_startmenu();
}
});
//开始菜单收回

// 上古代码
document.querySelectorAll('list.focs').forEach(li => {
li.addEventListener('click', () => {
Expand Down Expand Up @@ -4428,4 +4434,4 @@ function setupGlobalKey(){
}
});
}
setupGlobalKey();
setupGlobalKey();

0 comments on commit 3490f1c

Please sign in to comment.