fix menu ESC issues

This commit is contained in:
Jinhao
2015-05-02 02:25:04 +08:00
parent e720866a94
commit 0267367f3f
2 changed files with 24 additions and 15 deletions

View File

@@ -460,6 +460,9 @@ namespace nana
API::update_window(widget_->handle());
}
});
if (API::focus_window() != this->widget_->handle())
API::focus_window(widget_->handle());
menu_accessor::popup(*state_.menu, *widget_, m->pos.x, m->pos.y + static_cast<int>(m->size.height));
return true;
}