public bool KeyEvent(KeyCode keyCode, ModifierKeyState state) { if (state.Ctrl && keyCode == KeyCode.Z) { InvertApplication.Execute(new UndoCommand()); return(true); } if (state.Ctrl && keyCode == KeyCode.Y) { InvertApplication.Execute(new RedoCommand()); return(true); } return(false); }
public MouseEvent() { ModifierKeyStates = new ModifierKeyState(); }
public MouseEvent(ModifierKeyState modifierKeyStates, IInputHandler defaultHandler) { ModifierKeyStates = modifierKeyStates; DefaultHandler = defaultHandler; }
public MouseEvent(ModifierKeyState modifierKeyStates) { ModifierKeyStates = modifierKeyStates; }