VOID WmKeydown(WPARAM VKey) { TooltipHide(-1); if (Interruptable) { extern BOOL EscapeInput; #if defined(WIN32) if (VKey == VK_PAUSE) { if (VKey == VK_SCROLL) XOffState = GetKeyState(VK_SCROLL) & 1; else XOffState ^= TRUE; if (XOffState) NewStatus(1, L"Hold", NS_NORMAL); else { NewStatus(1, L"", NS_NORMAL); ReleaseXOff(); } } #endif if (VKey == VK_CANCEL && GetKeyState(VK_CONTROL) < 0) { /*cancel button in search and replace dialogbox (?)*/ #if defined(WIN32) ExecInterrupt(CTRL_BREAK_EVENT); #endif Interrupted = TRUE; return; } if (Disabled && VKey != VK_NUMLOCK && VKey != VK_CAPITAL && VKey != VK_SHIFT && VKey != VK_CONTROL) { if (!EscapeInput && (VKey != 'C' || GetKeyState(VK_CONTROL) >= 0)) MessageBeep(MB_OK); /*...a ctrl+c message beep will be generated later*/ return; } else if (VKey=='C' || VKey=='Q' || VKey=='S') return; } GotKeydown(VKey); }
void TooltipsHide(void) { ToolTip *tt; TooltipsSetPending(0, NULL, NULL); ECORE_LIST_FOR_EACH(tt_list, tt) TooltipHide(tt); }