Example #1
0
        /*
         * Post an ActionEvent to the target of the MenuPeer
         * associated with the specified keyboard event (on
         * keydown).  Returns true if there is an associated
         * keyboard event.
         */
        internal override bool HandleShortcut(KeyEvent e)
        {
            int nitems = ItemCount;

            for (int i = 0; i < nitems; i++)
            {
                MenuItem mi = GetItem(i);
                if (mi.HandleShortcut(e))
                {
                    return(true);
                }
            }
            return(false);
        }