示例#1
0
 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);
 }
示例#2
0
 public MouseEvent()
 {
     ModifierKeyStates = new ModifierKeyState();
 }
示例#3
0
 public MouseEvent(ModifierKeyState modifierKeyStates, IInputHandler defaultHandler)
 {
     ModifierKeyStates = modifierKeyStates;
     DefaultHandler    = defaultHandler;
 }
示例#4
0
 public MouseEvent(ModifierKeyState modifierKeyStates)
 {
     ModifierKeyStates = modifierKeyStates;
 }