From 72dace9557f523f8ffcea6506489f7eebf921893 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Fri, 14 Aug 2009 23:11:09 +0000 Subject: [PATCH] Make the FindWindow closeable with the escape key. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32403 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/FindWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/diskprobe/FindWindow.cpp b/src/apps/diskprobe/FindWindow.cpp index 719acd9903..b5df9dec63 100644 --- a/src/apps/diskprobe/FindWindow.cpp +++ b/src/apps/diskprobe/FindWindow.cpp @@ -482,7 +482,8 @@ FindTextView::GetData(BMessage& message) FindWindow::FindWindow(BRect _rect, BMessage& previous, BMessenger& target, const BMessage* settings) - : BWindow(_rect, "Find", B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS), + : BWindow(_rect, "Find", B_TITLED_WINDOW, + B_ASYNCHRONOUS_CONTROLS | B_CLOSE_ON_ESCAPE), fTarget(target) { BView* view = new BView(Bounds(), "main", B_FOLLOW_ALL, 0);