I can't find the browser event

In the header of the App Inventor IDE there is a link to View Trash. I find this element in the object inspector on the Chrome toolbar, and enter in the console $0.click() but no event occurs! How do I programmatically click on the View Trash link in Javascript?

Because of how GWT manages button state it’s a bit wonky since it updates its internal state based on a number of mouse events. I was able to trigger with a (unfortunate) long sequence of events:

var btn = ...;
['mouseover', 'mousedown', 'mouseup', 'click', 'mouseout'].forEach(action => btn.dispatchEvent(new MouseEvent(action)));

Thank you, Evan, for helping us solve the problem of adding keyboard shortcuts to the App Inventor IDE.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.