thanks Yaroslav
The modified code works fine. though it can't select a word as I wanted;
another question, The mouse movement becomes very slow, when you keep pressing the shift key,
I will join the A2 community and ask question here and there;

luowy