Example #1
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            Key          key;
            ModifierKeys modifierKeys;

            InputUtil.GetWindowsKey(keyData, out key, out modifierKeys);
            IInteractor interactor = new ShowPositionInteractor();
            Point       p          = PointToClient(MousePosition);
            bool        handled    = interactor.ProcessKeyDown(
                new CanonicalMouseEventArgs(new MouseEventArgs(MouseButtons.None, 0, p.X, p.Y, 0)),
                key,
                modifierKeys,
                GetInteractionContext()
                );

            return(base.ProcessCmdKey(ref msg, keyData));
        }