• Nektarios Paisios's avatar
    Fixed Task Manager accessibility with NVDA · 4a8b28bf
    Nektarios Paisios authored
    TableView would fire a focus event every time the active row or column changed,
    e.g. every time an NVDA user would use the arrow keys to navigate around the view.
    
    However, Task Manager updates its displayed information very frequently and so
    by the time NVDA would process the focus changed event, the AXVirtualView object corresponding to the focused item
    would no longer be available. Task Manager marks every item as changed every time it refreshes its display,
    thereby causing the corresponding AXVirtualView object to be destroyed and re-created.
    
    To work around this issue, we delay firing the focus changed event after OnPaint.
    
    R=dmazzoni@chromium.org, sky@chromium.org
    
    Bug: 811277
    Change-Id: I941cda49fefdc5becdbd7baf8f2cca26104d1aa9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1930061Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Commit-Queue: Nektarios Paisios <nektar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#719175}
    4a8b28bf
table_view.cc 50.3 KB