![]() | InDesign SDK 20.5 |
#include <IKeyFocusHandler.h>

Public Member Functions | |
| virtual IEventHandler * | GetFirstTargetEventHandler ()=0 |
| virtual IEventHandler * | GetNextTargetEventHandler (bool16 forward)=0 |
| virtual IEventHandler * | GetCurrentTargetEventHandler ()=0 |
| virtual bool16 | SetCurrentTargetEventHandler (IEventHandler *handler, bool16 validate=kTrue)=0 |
| virtual void | SetTargetEventHandler (IEventHandler *view)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface is associated with a window boss to handle keyboard focus function on this particular window.
| pure virtual |
Return the current event handler that is the keyboard target.
| pure virtual |
Return the first control's event handler in the dialog that can be the keyboard target.
| pure virtual |
Return the next control's event handler in the dialog that can be the keyboard target. Pass in false to get the previous control. If there's only a single control, the current control's event handler will be returned.
| forward | search direction. kTrue search forward and kFalse search backward |
| pure virtual |
Set the event handler that will be the keyboard target. Returns kFalse if the function wasn't able to set the event handler as the target. This might happen when the current target won't let go of the keyboard. If you pass kFalse for the "validate" parameter, then validation won't occur for the event handler that currently has the focus.
| handler | IEventHandler we try to set as keyboard target. |
| validate | kTrue validate current key focus target. |
| pure virtual |
For internal use only. Use should call SetCurrentTargetEventHandler instead.