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 in CATKnob, and CATSlider. Definition at line 845 of file CATControl.cpp. References fActive, fPressed, CATKeystroke::GetNormalKey(), and CATWidget::MarkDirty(). Referenced by CATWindow::OnKeyDown(), CATSlider::OnKeyDown(), and CATKnob::OnKeyDown().
|