That's because it isn't supposed to. MDI parent forms automatically dispatch all key presses to the appropriate child (which is typically a tMainMenu or a tMDIChild).
If you want to intercept this you can proceed one of two ways:
1. Write a message handler function
2. Override the form's WndProc
Both ways are pretty much the same thing, but #1 is cleaner... You'll want to trap WM_KEYDOWN and/or WM_KEYUP.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.