• Aaron Leventhal's avatar
    Fire exactly one selection event when hovering over new menu item · 1d4c6ef2
    Aaron Leventhal authored
    Adjust menu controller to ensure correct number of kSelection events.
    These are turned into focus events under MSAA.
    
    - Regular menu items: we were firing extra events even when selection
      didn't change.
    - Hot button menu items, such as zoom-related, cut/copy/paste in edit
      menu, were not firing any events on hover, because the button already
      considered itself hot tracked via the button controller's mouse
      handling.
    
    AX-Relnotes: avoid missing or duplicate menu item announcements when using mouse
    Bug: 1077755, 1106916
    Change-Id: Ie933146b647d56f7665cfc72bb708e9f7bdd71de
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2350483
    Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
    Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#797288}
    1d4c6ef2
menu_controller.h 30 KB