Unplanned
Last Updated: 01 Mar 2023 05:55 by ADMIN
Jonathan
Created on: 27 Feb 2023 13:40
Category: Menu
Type: Bug Report
1
RadMenu: Shortcuts for menu items at root level doesn't work in MDI scenario

Use the following code:

        public RadForm1()
        {
            InitializeComponent();
            this.IsMdiContainer = true;

            RadForm form = new RadForm();
            form.Text = "Net Core WinForms MDI Child 1";
            form.MdiParent = this; 
            form.Show();

            form = new RadForm();
            form.Text = "Net Core WinForms MDI Child 2";
            form.MdiParent = this; 
            form.Show();

            form = new RadForm();
            form.Text = "Net Core WinForms MDI Child 3";
            form.MdiParent = this;
            form.Show();

            this.radMenuItem1.Shortcuts.Add(new RadShortcut(Keys.Control, Keys.X));
            this.radMenuItem1.Click += RadMenuItem1_Click;

            this.radMenuItem2.Shortcuts.Add(new RadShortcut(Keys.Control, Keys.A));
            this.radMenuItem2.Click += RadMenuItem2_Click;
        }

        private void RadMenuItem1_Click(object sender, EventArgs e)
        {
            RadMessageBox.Show("Ctrl+X");
        }

        private void RadMenuItem2_Click(object sender, EventArgs e)
        {
            RadMessageBox.Show("Ctrl+A");
        }

Expected result: Press Ctrl+X >> the respective message box is shown

Actual result: the message box is missing. Only when the MDI child forms are missing MDIParent, the shortcut is executed.

3 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 01 Mar 2023 05:55

Hello, Jonathan,

Thank you for the provided feedback. We will consider it when improving the behavior with shortcuts in MDI scenario.

Make sure that you cast your vote for the item in order to increase its priority.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jonathan
Posted on: 27 Feb 2023 14:59

When you are addressing this - please be sure to address both the shortcuts (Ctrl + X) as you have explicitly shown above as well as the use of the Menmonics and Accelerators via the Alt key combinations (Alt, F, N)

https://docs.telerik.com/devtools/winforms/controls/menus/menu/usability/keyboard-navigation

Also it might be worth pointing out that it should work with RadDock as an MDI container as well.

https://docs.telerik.com/devtools/winforms/controls/dock/mdi-mode/automatic-mdi-form-handling

 

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 27 Feb 2023 13:45

Hello, Jonathan,

Thank you for reporting this. You can try eliminating the MDI scenario and use separate forms instead of MDI children. Please excuse us for the inconvenience caused. We will do our best to introduce a fix accordingly.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.