DiskProbe: select Find window text
Select the text to find as the Find window is opened. This makes the behavior more consistent with other apps. Fixes the main subject of #10844. Also removes trailing whitespace. Signed-off-by: Axel Dörfler <[email protected]>
This commit is contained in:
committed by
Axel Dörfler
parent
ed1b81b72b
commit
1bf0271fa0
@@ -631,6 +631,14 @@ FindWindow::QuitRequested()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
FindWindow::Show()
|
||||
{
|
||||
fTextView->SelectAll();
|
||||
BWindow::Show();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
FindWindow::SetTarget(BMessenger& target)
|
||||
{
|
||||
|
||||
@@ -30,6 +30,7 @@ class FindWindow : public BWindow {
|
||||
virtual void WindowActivated(bool active);
|
||||
virtual void MessageReceived(BMessage *message);
|
||||
virtual bool QuitRequested();
|
||||
virtual void Show();
|
||||
|
||||
void SetTarget(BMessenger &target);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user