Plug-in developers may can capture keystrokes to implement
hot keys within their plug-in. Use the CWnd::SetFocus() if using MFC,
or use SetFocus() if you are using Windows SDK.
Do the following in your Windows plug-in (Windows SDK way)
1.Call SetFocus((HWND)window->window) in your NPP_SetWindow().
2.Handle WM_KEYDOWN in your plug-in procedure.
(An extract from MFC documentation)
SetFocus() function sets the keyboard focus to the specified window.
The window, if any, that previously had the keyboard focus loses it.
- Related Readings:
-
Any sample code included above is provided for your use on an "AS IS" basis, under the Netscape License Agreement - Terms of Use