Divelements Community
Customer discussion of all Divelements products

Enter shorcut to activate items

Latest post 11-08-2007 12:32 by Tim Dawson. 2 replies.
  • 10-09-2007 20:16

    Enter shorcut to activate items

    Is there any reason that you process not only "Enter", but also "Alt-Enter", "Shift-Enter", and "Alt-Enter" in ProcessDialogKey of the SandGrid? I understand the need to process "Enter", but I like using "Alt-Enter" for other things. Right now, the SandGrid is eating the message because it discards the modifier.
  • 10-09-2007 20:23 In reply to

    Re: Enter shorcut to activate items

    BTW, I've worked around it by deriving from SandGrid and overriding ProcessDialogKey like this:

    protected override bool ProcessDialogKey(System.Windows.Forms.Keys keyData)
    {
        if ((keyData & System.Windows.Forms.Keys.Return) == System.Windows.Forms.Keys.Return
           && keyData != System.Windows.Forms.Keys.Return)
        {
            return false;
        }

        return base.ProcessDialogKey(keyData);
    }


    Basically, I'm returning false when the key contains "Enter" but is not exactly "Enter".
  • 11-08-2007 12:32 In reply to

    Re: Enter shorcut to activate items

    This is a bug and has now been fixed ready for the next version - thanks.
Page 1 of 1 (3 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems