protected bool tryHandle(List <Key> keys_down, EditorCommandList commands) { if (this.shouldHandle(keys_down)) { this.handle(commands); return(true); } else { return(false); } }
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); } } }
protected override void handle(EditorCommandList commands) { commands.executeCommand("save_file"); }
protected abstract void handle(EditorCommandList commands);
protected override void handle(EditorCommandList commands) { commands.executeCommand("add_time_68"); }
public Hotkeys(Editor target) { this._commands = new EditorCommandList(target); this._setupChain(); }