Issue 123622

Summary: [ia2] Calc: No focus event fired on cell when new spreadsheet is created
Product: General Reporter: James Teh <jamie>
Component: accessibilityAssignee: AOO issues mailing list <issues>
Status: CLOSED FIXED QA Contact:
Severity: Normal    
Priority: P3 CC: issues, steve.yin.aoo, vsfoote
Version: 4.1.0-dev   
Target Milestone: 4.1.0   
Hardware: PC   
OS: Windows, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 121767    

Description James Teh 2013-11-04 08:05:23 UTC
Str:
1. Ensure OpenOffice is closed.
2. Start Calc directly from the Start menu; i.e. scalc.exe.
Expected: A focus event should be fired for the "A1" cell.
Actual: A focus event is fired on the root pane accessible, but not on the cell.

3. From the File menu, select New -> Spreadsheet.
Expected: A focus event should be fired for the "A1" cell.
Actual: No focus event is fired.

Interestingly, a focus event is fired as expected if you:
* Create a new spreadsheet by starting OpenOffice (i.e. soffice.exe) and selecting Spreadsheet;
* Create a new spreadsheet by starting OpenOffice, then selecting File menu -> New -> Spreadsheet; or
* Open an existing spreadsheet.
Comment 1 V Stuart Foote 2013-11-07 04:34:33 UTC
Confirmed on Windows 7 sp1 64-bit with ia2
AOO410m1(Build:9750)  -  Rev. 1538508
Rev.1538508
Comment 2 Steve Yin 2014-01-07 05:50:16 UTC
In this case the accessibility listener will be added after the spreadsheet view creation. So when calling TabChanged, no accessibility object will be created and no accessibility focus event will be sent out at that time.
Comment 3 SVN Robot 2014-01-07 06:02:15 UTC
"steve_y" committed SVN revision 1556120 into trunk:
Bug 123622 - [ia2] Calc: No focus event fired on cell when new spreadsheet is...
Comment 4 Steve Yin 2014-01-07 06:31:00 UTC
Verified, it works.
Comment 5 James Teh 2014-03-03 13:57:56 UTC
This isn't fixed for me in AOO410m1(Build:9750)  -  Rev. 1571087. I'm still not seeing focus events in the cases I described in comment 0.
Comment 6 Steve Yin 2014-03-10 08:16:51 UTC
Reproduced. I am sure that the fix worked before. Let me check...
Comment 7 SVN Robot 2014-03-11 05:53:59 UTC
"steve_y" committed SVN revision 1576192 into trunk:
Bug 123622 - [ia2] Calc: No focus event fired on cell when new spreadsheet is...
Comment 8 Steve Yin 2014-03-11 06:19:31 UTC
The previous fix does not work. The accessible object (AccessibleSpreadsheet) which fire the focus event will be destroyed later. 

In this fix, the function "FireFirstCellFocus" is moved in another line in which the accessible object is active.