drawing, properly disable text input panel
fix several bugs caused by using opacity instead of enabled property