bool EditField::Key(dword key, int rep) { ... switch(key) { ... default: if(key >= ' ' && key < 65536 || key == K_SHIFT_SPACE) { if(!RemoveSelection()) SaveUndo(); while(rep--) Insert(key == K_SHIFT_SPACE ? ' ' : key); Action(); <<<--- return true; }
void Calendar::LeftDown(Point p, dword keyflags) { ... if(PopUpCtrl::IsPopUp()) { sel = tm; Deactivate(); WhenAction(); <<<--- }