예제 #1
0
 protected bool tryHandle(List <Key> keys_down, EditorCommandList commands)
 {
     if (this.shouldHandle(keys_down))
     {
         this.handle(commands);
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
 public bool handle(List <Key> keys_down, EditorCommandList commands)
 {
     if (tryHandle(keys_down, commands))
     {
         return(true);
     }
     else
     {
         if (this.next != null)
         {
             return(this.next.handle(keys_down, commands));
         }
         else
         {
             return(false);
         }
     }
 }
예제 #3
0
 protected override void handle(EditorCommandList commands)
 {
     commands.executeCommand("save_file");
 }
예제 #4
0
 protected abstract void handle(EditorCommandList commands);
예제 #5
0
 protected override void handle(EditorCommandList commands)
 {
     commands.executeCommand("add_time_68");
 }
예제 #6
0
        public Hotkeys(Editor target)
        {
            this._commands = new EditorCommandList(target);

            this._setupChain();
        }