mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-06 01:20:41 +00:00
fix the issue with windows losing focus right after they're opened
This commit is contained in:
@@ -67,7 +67,10 @@ function UITaskbarItem(options){
|
||||
// fade in the taskbar item
|
||||
$(el_taskbar_item).show(50);
|
||||
|
||||
$(el_taskbar_item).on("click", function(){
|
||||
$(el_taskbar_item).on("click", function(e){
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
// If this item has an open context menu, don't do anything
|
||||
if($(el_taskbar_item).hasClass('has-open-contextmenu'))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user