I am using D5 in an SDI application. My main form has a TMenu named mainmenu1. This form opens a second form via ShowModal. The main form has a shortcut of Alt-X to close the form. However, somehow this shortcut has worked it's way over to my second form. My second form has a TMenu named mainmenu2. So when I press alt-x both the second and main forms close. I don't know why this is happening because I have no shortcut key or any key combination defined for the second form and menu.
Does anyone know how to fix this? If not, how do I trap for the Alt-X? I tried using the form's onKeyDown event, with KeyPreview = true and also as false and this event seems to get skipped.