Fix for #731643: allow "lookup in documentation" to also work if the
interactive window is frontmost.
diff --git a/Mac/Tools/IDE/Wapplication.py b/Mac/Tools/IDE/Wapplication.py
index abeee60..ada4419 100644
--- a/Mac/Tools/IDE/Wapplication.py
+++ b/Mac/Tools/IDE/Wapplication.py
@@ -131,6 +131,12 @@
 				handler = getattr(window, attr)
 				apply(handler, args)
 				return 1
+				
+	def getfrontwindow(self):
+		wid = MyFrontWindow()
+		if wid and self._windows.has_key(wid):
+			return self._windows[wid]
+		return None
 	
 	def appendwindow(self, wid, window):
 		self._windows[wid] = window