FIX: UiScriptCommand marks events as processed only when they are actually dispatched to some scripting code. This fixes a problem with menus not closing when a scripted button was focused (due to middle button events being marked as processed)