mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Merge pull request #17 from coderofsalvation/coderofsalvation-patch-contextmenu
contextmenu fix for chromebook
This commit is contained in:
@@ -5883,6 +5883,7 @@ ContextMenu.prototype.addItem = function( name, value, options )
|
|||||||
|
|
||||||
ContextMenu.prototype.close = function(e, ignore_parent_menu)
|
ContextMenu.prototype.close = function(e, ignore_parent_menu)
|
||||||
{
|
{
|
||||||
|
if( e != undefined && e.which == 0 ) return
|
||||||
if(this.root.parentNode)
|
if(this.root.parentNode)
|
||||||
this.root.parentNode.removeChild( this.root );
|
this.root.parentNode.removeChild( this.root );
|
||||||
if(this.parentMenu && !ignore_parent_menu)
|
if(this.parentMenu && !ignore_parent_menu)
|
||||||
|
|||||||
Reference in New Issue
Block a user