double clicking component events cause cursor to hide

Same issue here. On top of this, the handler code is inserted between implementation keyword and uses list.