Disable browser context menu on launcher popover (#1648)

* Disable browser context menu on launcher popover

* Allow system context menu on launch search bar

* Remove extraneous debug log
This commit is contained in:
Hariz
2025-10-02 23:40:42 -04:00
committed by GitHub
parent 4a1aee0713
commit 4eab7167e6
+8 -2
View File
@@ -191,7 +191,7 @@ async function UITaskbar(options){
}
});
$(popover).on('click', function(e){
$(popover).on('click', function(){
// close other context menus
$(".context-menu").fadeOut(200, function(){
$(this).remove();
@@ -199,7 +199,13 @@ async function UITaskbar(options){
});
});
$(document).on('contextmenu taphold', '.start-app', (e) => {
$(popover).on('contextmenu taphold', function(e) {
if (!e.target.closest('.launch-search')) {
e.preventDefault();
}
});
$(document).on('contextmenu taphold', '.start-app', function(e) {
if (e.type === 'taphold' && !isMobile.phone && !isMobile.tablet)
return;