<hbox id="box1" on:focus="onFocus();"/> <button/> </hbox> // when the button gets focus function onFocus() { var eventObj = shell.getCurrentEvent(); if (eventObj && eventObj.currentBox && eventObj.currentBox.id=="box1") { shell.print("the event has propagated to box 1"); } }