Browse Source

ContextActionsPopup (Used by Find derived classes, base classes and overrides) is closed by ESC.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6097 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Martin Koníček 16 years ago
parent
commit
ba136fc954
  1. 9
      src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsPopup.cs

9
src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsPopup.cs

@ -7,6 +7,8 @@ @@ -7,6 +7,8 @@
using System;
using System.Windows;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using ICSharpCode.SharpDevelop.Editor;
namespace ICSharpCode.SharpDevelop.Refactoring
@ -24,6 +26,13 @@ namespace ICSharpCode.SharpDevelop.Refactoring @@ -24,6 +26,13 @@ namespace ICSharpCode.SharpDevelop.Refactoring
this.ActionsControl = new ContextActionsControl();
// Close when any action excecuted
this.ActionsControl.ActionExecuted += delegate { this.Close(); };
this.KeyDown += new KeyEventHandler(ContextActionsPopup_KeyDown);
}
void ContextActionsPopup_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Escape)
Close();
}
private ContextActionsControl ActionsControl

Loading…
Cancel
Save