From d978627e17add0b6b0db18305e3a5b17fa496041 Mon Sep 17 00:00:00 2001
From: Mads Jensen <mje@inducks.org>
Date: Mon, 3 Nov 2014 09:47:16 +0100
Subject: [PATCH] removing unused header file, and using macro for space key

---
 pgadmin/ctl/ctlSQLBox.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/pgadmin/ctl/ctlSQLBox.cpp b/pgadmin/ctl/ctlSQLBox.cpp
index cf33207..5c87173 100644
--- a/pgadmin/ctl/ctlSQLBox.cpp
+++ b/pgadmin/ctl/ctlSQLBox.cpp
@@ -22,9 +22,6 @@
 #include "dlg/dlgFindReplace.h"
 #include "frm/menu.h"
 
-// Must be last for reasons I haven't fully grokked...
-#include <wx/regex.h>
-
 wxString ctlSQLBox::sqlKeywords;
 
 // Additional pl/pgsql keywords we should highlight
@@ -159,7 +156,7 @@ void ctlSQLBox::Create(wxWindow *parent, wxWindowID id, const wxPoint &pos, cons
 	// Setup accelerators
 	wxAcceleratorEntry entries[2];
 	entries[0].Set(wxACCEL_CTRL, (int)'F', MNU_FIND);
-	entries[1].Set(wxACCEL_CTRL, (int)' ', MNU_AUTOCOMPLETE);
+	entries[1].Set(wxACCEL_CTRL, WXK_SPACE, MNU_AUTOCOMPLETE);
 	wxAcceleratorTable accel(2, entries);
 	SetAcceleratorTable(accel);
 
@@ -740,4 +737,3 @@ CharacterRange ctlSQLBox::RegexFindText(int minPos, int maxPos, const wxString &
 
 	return ft.chrgText;
 }
-
-- 
1.9.1

