disallows copying text from a masked text-editor.
This commit is contained in:
parent
c440613d90
commit
e0ba1c7d8a
@ -2086,6 +2086,10 @@ namespace nana{ namespace widgets
|
|||||||
|
|
||||||
void text_editor::copy() const
|
void text_editor::copy() const
|
||||||
{
|
{
|
||||||
|
//Stops copying text if the text_editor is masked.
|
||||||
|
if (mask_char_)
|
||||||
|
return;
|
||||||
|
|
||||||
auto text = _m_make_select_string();
|
auto text = _m_make_select_string();
|
||||||
if (!text.empty())
|
if (!text.empty())
|
||||||
nana::system::dataexch().set(text, API::root(this->window_));
|
nana::system::dataexch().set(text, API::root(this->window_));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user