bugfix for tab switch control between Edit/RichEdit
bugfix for