enable/disable tab when textbox is switched between single/multi-line

This commit is contained in:
Jinhao 2016-03-29 01:22:34 +08:00
parent 40d4bb4314
commit 6b1cba1357

View File

@ -392,8 +392,12 @@ namespace drawerbase {
{
internal_scope_guard lock;
auto editor = get_drawer_trigger().editor();
if(editor && editor->multi_lines(ml))
API::update_window(handle());
if (editor && editor->multi_lines(ml))
{
auto wd = handle();
API::eat_tabstop(wd, ml); //textbox handles the Tab pressing when it is multi-line.
API::update_window(wd);
}
return *this;
}