Issue #5: Focus function should raise the onselectionchange event