diff --git a/dist/iwmlib.js b/dist/iwmlib.js index 7e09268..a8dbcf1 100644 --- a/dist/iwmlib.js +++ b/dist/iwmlib.js @@ -6671,9 +6671,11 @@ if (this.autoClose) { this.close(); } - setTimeout(() => { - func.call(event, key); - }, 20); + console.log("perform", event, key); + setTimeout((event, key) => { + console.log("perform within arrow", event, key); + func(event, key); + }, 20, event, key); } /** Update the menu item denoted by key. diff --git a/lib/popupmenu.html b/lib/popupmenu.html index 7a1d460..531f2fe 100644 --- a/lib/popupmenu.html +++ b/lib/popupmenu.html @@ -34,8 +34,8 @@ oncontextmenu="PopupMenu.open(cmds, oncontextmenu="PopupMenu.open(cmds, {x: event.offsetX, y: event.offsetY}, { parent: example, keepWithin: example}); return false;">