disallows copying text from a masked text-editor.

This commit is contained in:
Jinhao 2018-08-25 06:34:43 +08:00
parent c440613d90
commit e0ba1c7d8a

View File

@ -2086,6 +2086,10 @@ namespace nana{ namespace widgets
void text_editor::copy() const
{
//Stops copying text if the text_editor is masked.
if (mask_char_)
return;
auto text = _m_make_select_string();
if (!text.empty())
nana::system::dataexch().set(text, API::root(this->window_));