fix menu behavioral issues and a menubar delay_restore issue

don't delay_restore when arrow keys is pressed
This commit is contained in:
Jinhao
2015-06-29 07:31:51 +08:00
parent 8be566214c
commit c245ae8296
3 changed files with 188 additions and 179 deletions

View File

@@ -1474,7 +1474,10 @@ namespace detail
else
brock.set_keyboard_shortkey(false);
brock.delay_restore(2); //Restores while key release
//Do delay restore if key is not arrow_left/right/up/down, otherwise
//A menubar will be restored if the item is empty(not have a menu item)
if (wParam < 37 || 40 < wParam)
brock.delay_restore(2); //Restores while key release
break;
case WM_CLOSE:
{