예제 #1
0
            protected override void OnKeyUp(KeyUpEvent e)
            {
                if (keyCombination.IsPressed(new KeyCombination(KeyCombination.FromKey(e.Key)), KeyCombinationMatchingMode.Any))
                {
                    box.Colour = Color4.DarkGray;
                }

                base.OnKeyUp(e);
            }
예제 #2
0
            protected override bool OnKeyDown(KeyDownEvent e)
            {
                if (keyCombination.IsPressed(new KeyCombination(KeyCombination.FromKey(e.Key)), KeyCombinationMatchingMode.Any))
                {
                    box.Colour = Color4.Navy;
                }

                return(base.OnKeyDown(e));
            }