OSDN Git Service

全ダイアログをESCキーでキャンセルできるように修正
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 5 Oct 2014 21:47:59 +0000 (06:47 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 11 Oct 2014 15:15:43 +0000 (00:15 +0900)
OpenTween/AppendSettingDialog.Designer.cs
OpenTween/HashtagManage.Designer.cs
OpenTween/Resources/ChangeLog.txt
OpenTween/SearchWordDialog.Designer.cs
OpenTween/SearchWordDialog.cs
OpenTween/TweenAboutBox.Designer.cs

index 9a807af..2444320 100644 (file)
             // 
             resources.ApplyResources(this, "$this");
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+            this.CancelButton = this.Cancel;
             this.Controls.Add(this.SplitContainer1);
             this.Controls.Add(this.Save);
             this.Controls.Add(this.Cancel);
index 628e993..b3161b8 100644 (file)
             // 
             resources.ApplyResources(this, "$this");
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+            this.CancelButton = this.Cancel_Button;
             this.Controls.Add(this.TableLayoutButtons);
             this.Controls.Add(this.GroupHashtag);
             this.Controls.Add(this.CheckNotAddToAtReply);
index 5de6f03..70b1f49 100644 (file)
@@ -7,6 +7,7 @@
  * CHG: デフォルトの画像投稿先を Twitter (pic.twitter.com) に変更しました
  * FIX: 画像投稿時に、入力したツイートと画像URLの間に空白が2文字入ってしまう不具合を修正
  * FIX: 画像が紐付いていないTumblrのURLに対してサムネイル画像欄が表示され読み込みに失敗する不具合を修正
+ * FIX: ESCキーで閉じられないダイアログが一部存在していた問題を修正
 
 ==== Ver 1.2.3(2014/09/03)
  * NEW: UserSteams の (un)mute イベント追加に対応
index 12a558c..eaa36d4 100644 (file)
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
             this.Controls.Add(this.tabControl);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+            this.KeyPreview = true;
             this.MaximizeBox = false;
             this.MinimizeBox = false;
             this.Name = "SearchWordDialog";
             this.ShowInTaskbar = false;
             this.Shown += new System.EventHandler(this.textSearchTimeline_Shown);
+            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SearchWordDialog_KeyDown);
             this.tableLayoutPanel1.ResumeLayout(false);
             this.tableLayoutPanel1.PerformLayout();
             this.tabControl.ResumeLayout(false);
index 6e51599..66a114b 100644 (file)
@@ -207,5 +207,11 @@ namespace OpenTween
             var tweenMain = (TweenMain)this.Owner;
             tweenMain.OpenUriAsync(PublicSearchHelpUrl);
         }
+
+        private void SearchWordDialog_KeyDown(object sender, KeyEventArgs e)
+        {
+            if (e.KeyCode == Keys.Escape)
+                this.DialogResult = DialogResult.Cancel;
+        }
     }
 }
index 8ae9c8c..51ca51a 100644 (file)
             // 
             // TweenAboutBox
             // 
+            this.AcceptButton = this.OKButton;
             resources.ApplyResources(this, "$this");
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+            this.CancelButton = this.OKButton;
             this.Controls.Add(this.TableLayoutPanel);
             this.Name = "TweenAboutBox";
             this.ShowIcon = false;