From c05380cdf50ed52f7d27e84042b930239ed8ecf6 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 29 Aug 2016 16:12:58 +0200 Subject: [PATCH] Add cancel buttons (which respond to escape) to a couple of dialogs --- renderdocui/Windows/Dialogs/EnvironmentEditor.Designer.cs | 1 + renderdocui/Windows/Dialogs/VirtualOpenFileDialog.Designer.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/renderdocui/Windows/Dialogs/EnvironmentEditor.Designer.cs b/renderdocui/Windows/Dialogs/EnvironmentEditor.Designer.cs index a93ee6556..0c968da7d 100644 --- a/renderdocui/Windows/Dialogs/EnvironmentEditor.Designer.cs +++ b/renderdocui/Windows/Dialogs/EnvironmentEditor.Designer.cs @@ -298,6 +298,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = cancel; this.ClientSize = new System.Drawing.Size(673, 474); this.Controls.Add(tableLayoutPanel1); this.MaximizeBox = false; diff --git a/renderdocui/Windows/Dialogs/VirtualOpenFileDialog.Designer.cs b/renderdocui/Windows/Dialogs/VirtualOpenFileDialog.Designer.cs index f8a405714..96f4035cb 100644 --- a/renderdocui/Windows/Dialogs/VirtualOpenFileDialog.Designer.cs +++ b/renderdocui/Windows/Dialogs/VirtualOpenFileDialog.Designer.cs @@ -259,6 +259,7 @@ // // cancel // + cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; cancel.Location = new System.Drawing.Point(674, 448); cancel.Margin = new System.Windows.Forms.Padding(3, 3, 15, 15); cancel.Name = "cancel"; @@ -285,6 +286,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = cancel; this.ClientSize = new System.Drawing.Size(764, 486); this.Controls.Add(mainTable); this.MaximizeBox = false;