Apache OpenOffice (AOO) Bugzilla – Issue 13955
grabFocus() failing to grab focus...
Last modified: 2013-08-07 14:44:28 UTC
Using grabFocus() on elements of a document seems to have problems: 1) On text, if you were originally focused outside the doc area (eg. in a combobox), the style information seems to switch correctly but the cursor is still located in the comobobox... 2) On Images, the image seems to get the focus (at least the frame around it is highlighted and the handlebars - for resize, etc. - for visible). In all cases there is no state-changed:focused event sent (which would be expected) and the FOCUSED state is not added to the StateSet...
.
Seperated (2) to a new task: http://www.openoffice.org/project/www/issues/show_bug.cgi?id=14107 (1) seems not to be a bridge issue, since the wrapper directly calls XAccessibleComponent.grabFocus().
dvo->hbrinkm: Please have a look at this. Ideally, you only need to add something like GetWindow()->GrabFocus() to the accessible paragraph's grabFocus() method.
review pending
changed files: sw/source/core/access/accpara.cxx: 1.54.8.1 reviewed by DVO.
ready for QA
Please verify.