Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Form opened from ribbon using keyboard is not getting focus
posted

I have the following problem with a form not taking focus from the ribbon once it's been opened using the keyboard.

There's an MDI parent form with a ribbon.

One of the buttons on the ribbon opens an MDI child form with text boxes on it.

I use the Alt key to give focus to the ribbon, then use the cursor keys to navigate to the button on the ribbon, and press the keyboard Return key to click that button.

The child form opens and the cursor is in the text box of that form, so it receives keyboard input when I type, but I can't tab out of that text box until I've either clicked on the form or pressed the Alt key again.

Is this intended behaviour? Shouldn't the form take focus when it opens?