NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
A weird text selection behavior


Joined: 25 Jun 2011
Posts: 1
Reply with quote
Text selection in Phped doesn't work as in ordinary text boxes.

There are two unusual behavior about this matter:

1) In an ordinary text box, you select a piece of text, then left-click any point inside the text area, and text selection disappears. In Phped, text selection remains after you click a point in text area.

2) In an ordinary text box, you select a piece of text, then you type some other text by keyboard, and the selected text is replace by your new keyboard entry. In Phped, selected text remains selected, and your new keyboard entry is inserted at the cursor position.

I want the text selection feature of Phped to work as it does in ordinary text boxes.
What setting should I alter for this?
View user's profileFind all posts by hkBattousaiSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
I just tested your observations in both PhpED 5.9 and 6:

1) Both versions of PhpED deselect the text if you quickly single left-click inside a text selection. If you left-click and hold, the text remains selected and then you can drag & drop it to a new position. You can disable that by ticking Disable code drag & drop in the IDE settings (not sure if that should really be an Editor setting?)

2) I couldn't reproduce this issue. If I select some text then type something, the selected text is always replaced with what I typed. I also could not find a setting to change that behaviour.

For me it behaves exactly as I would expect in any text editor.

I suggest going into the Editor settings and clicking the Reset button, then seeing if the behaviour changes.
View user's profileFind all posts by plugnplaySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
It looks like you turned Persistent Blocks on.
So they are persistent.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
A weird text selection behavior
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic