I have an application that uses Hot Keys to activate various functions. The user can choose pretty much any key and the shift parameters to go with it.
The keys are checked via the Application.OnMessage handler (WM_KEYDOWN and WM_KEYUP), but F10 (menu focus) is not seen there.
While I can capture F10 in the OnKeyDown (with KeyPreview set) on the main form, that doesn’t help when other forms have the focus and I didn’t want to have to add that code to every form.
Is there a better way to capture the keys at a lower level than Application.OnMessage ?