From 71f23767a3cda5e99d81c25d498ab38fe2fa352e Mon Sep 17 00:00:00 2001 From: Michael Curran Date: Sat, 3 Dec 2011 21:39:55 +1000 Subject: [PATCH] webKit virtualBuffer: add a _shouldSetFocusToObj and disallow focus on grouping objects as for some reason this keeps forcing focus to particular controls inside the grouping (e.g. Store menu -> search... then arrow down to the title heading (inside a grouping) and focus keeps being forced into the artist edit field. Also happens in some other places). --- source/virtualBuffers/webKit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/virtualBuffers/webKit.py b/source/virtualBuffers/webKit.py index 4517218ba..53f2b3423 100644 --- a/source/virtualBuffers/webKit.py +++ b/source/virtualBuffers/webKit.py @@ -126,3 +126,6 @@ class WebKit(VirtualBuffer): winUser.mouse_event(winUser.MOUSEEVENTF_LEFTDOWN,0,0,None,None) winUser.mouse_event(winUser.MOUSEEVENTF_LEFTUP,0,0,None,None) winUser.setCursorPos(oldX,oldY) + + def _shouldSetFocusToObj(self,obj): + return obj.role!=controlTypes.ROLE_GROUPING and super(WebKit,self)._shouldSetFocusToObj(obj) -- 2.11.0