Discussion:
Vetoing user input on selected text
Jari Williamsson
2014-07-31 06:55:13 UTC
Permalink
When I respond to SC_MOD_INSERTCHECK with an empty SCI_CHANGEINSERTION
(thanks for this addition to Scintilla, BTW!) to veto the input, it works
correctly when there is no selection. However, when there's selected text,
the selection gets deleted instead of vetoing the input. How can I get it
to work correctly for selected text as well?


Best regards,

Jari Williamsson
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
i***@gmail.com
2014-07-31 07:35:32 UTC
Permalink
Post by Jari Williamsson
When I respond to SC_MOD_INSERTCHECK with an empty SCI_CHANGEINSERTION
... when there's selected text, the selection gets deleted instead of
vetoing the input.

I've also been looking at this recently, as I am implementing a patch to
allow vetoing of any kind of modification to the document.

What you describe is a limitation of the code as it currently stands. I
hope to submit a patch to scintilla-interest either by the end of this week
or early next week with the new modification veto code. I would be
extremely grateful if you would provide feedback on it and let me know of
any problems.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Loading...