OnKeyDown() is called when a key is depressed and the control has focus. The key may be a standard key, or it may be one of the special keys - see CATKeystroke.h for details. For most keys, you'll want to trap them here - that way you will receive repeats and such. However, if you want just full key press/releases, use OnKeyPress() instead.
Reimplemented from CATControl. Definition at line 189 of file CATSlider.cpp. References CATControl::BoundsCheckValue(), CATKEY_DOWN, CATKEY_END, CATKEY_HOME, CATKEY_LEFT, CATKEY_NEXT, CATKEY_PRIOR, CATKEY_RIGHT, CATKEY_UP, fLastTarget, CATControl::fMaxValue, CATControl::fMinValue, CATControl::fValue, CATKeystroke::GetSpecialKey(), CATControl::GetValRange(), CATKeystroke::IsSpecial(), kSLIDERSTEP, CATWidget::MarkDirty(), CATControl::OnKeyDown(), and CATControl::OnMouseClick().
|