From e75efe4a2343d53030128f025b56c48edfddefd4 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Sat, 24 Apr 2004 22:44:08 +0000 Subject: [PATCH] When starting wx-console, the initial key input focus is set into the command window. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1297 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/wx-console/CHANGELOG | 2 ++ bacula/src/wx-console/wxbmainframe.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/bacula/src/wx-console/CHANGELOG b/bacula/src/wx-console/CHANGELOG index d787d7ba17..eaa4b0477a 100644 --- a/bacula/src/wx-console/CHANGELOG +++ b/bacula/src/wx-console/CHANGELOG @@ -1,4 +1,6 @@ 24-04-2003 : + - wxbMainFrame : When starting wx-console, the initial key + input focus is set into the command window. - wxbMainFrame : the user is now prompted when an unexpected "question" is asked). - wxbRestorePanel : configure is allowed to change fileset diff --git a/bacula/src/wx-console/wxbmainframe.cpp b/bacula/src/wx-console/wxbmainframe.cpp index f2fda1542d..be01d4f11b 100644 --- a/bacula/src/wx-console/wxbmainframe.cpp +++ b/bacula/src/wx-console/wxbmainframe.cpp @@ -459,6 +459,7 @@ void wxbMainFrame::DisablePanels(void* except) { /* Enable or disable console typing */ void wxbMainFrame::EnableConsole(bool enable) { typeCtrl->Enable(enable); + typeCtrl->SetFocus(); } /* -- 2.39.5