fix caret and tab switch on invisible widgets(#62)

This commit is contained in:
Jinhao
2015-06-15 22:31:03 +08:00
parent 2d1a347116
commit 7dae086162
6 changed files with 77 additions and 51 deletions

View File

@@ -1400,7 +1400,7 @@ namespace detail
if(msgwnd)
{
if((wParam == 9) && (false == (msgwnd->flags.tab & tab_type::eating))) //Tab
if((wParam == 9) && (!msgwnd->visible || (false == (msgwnd->flags.tab & tab_type::eating)))) //Tab
{
auto the_next = brock.wd_manager.tabstop(msgwnd, (::GetKeyState(VK_SHIFT) >= 0));
if(the_next)