#62 fix incorrect behavior when switch out from wxMEdit/MadEit on selecting text