From f311296f2ebef64610ceb900237a582fb79dc1ab Mon Sep 17 00:00:00 2001 From: Coder of Salvation / Leon van Kammen Date: Thu, 8 Feb 2018 20:40:14 +0100 Subject: [PATCH] contextmenu fix for chromebook otherwise contextmenu closes before user can select an item (probably has to do with touch(pad)) --- src/litegraph.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/litegraph.js b/src/litegraph.js index c37d66bda..b60e4701c 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -5883,6 +5883,7 @@ ContextMenu.prototype.addItem = function( name, value, options ) ContextMenu.prototype.close = function(e, ignore_parent_menu) { + if( e != undefined && e.which == 0 ) return if(this.root.parentNode) this.root.parentNode.removeChild( this.root ); if(this.parentMenu && !ignore_parent_menu)