Turn off select text
How can I deselect all the text that was selected with mouse drag.
In my plugin I want turn on "select text with drag mouse" feature when I press some key, but I can't found some possibility for do this.
Please sign in to leave a comment.
You can try adding an EditorMouseMotionListener and always clear the selection in your mouseDragged method. However, given that there's quite a bit of logic around mouse drag selections (clicks on different parts of the editor, scroll on drag, multiple carets etc.), it's likely that you will get weird behavior in some cases. In general, such core editing functionality is not designed to be modified by plugins.
Thank you very much for answer!
Yes, I have some weird behavior in my plugin =)