Пример #1
0
        protected override bool HandleKeyPress(Keys keyData)
        {
            bool returnHandled = true;

            if (!ProcessZoomAndPanKeyPresses(keyData))
            {
                _filter.KeyPressed(keyData);
                returnHandled = false;
            }
            return(returnHandled);
        }
Пример #2
0
        protected override bool HandleKeyPress(Keys keyData)
        {
            bool returnHandled = true;

            if (!DoesThisPanelHaveFocus())
            {
                return(false);
            }
            if (_layer != null && !IsLocked(_layer) && _layer.KeyPressed(keyData))
            {
                bufferedPanel1.Invalidate();
                Factory.GUIController.RefreshPropertyGrid();
            }
            else if (!ProcessZoomAndPanKeyPresses(keyData))
            {
                returnHandled = false;
            }
            return(returnHandled);
        }