Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: content/renderer/accessibility/blink_ax_tree_source.cc

Issue 2849063002: Forward BrowserAccessibilityWin::get_accKeyboardShortcut to the platform node (Closed)
Patch Set: Add has check to ensure we don't override key shortcut Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/accessibility/browser_accessibility_com_win.cc ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/accessibility/blink_ax_tree_source.cc
diff --git a/content/renderer/accessibility/blink_ax_tree_source.cc b/content/renderer/accessibility/blink_ax_tree_source.cc
index 923e6390c78eb9355d877c34176b18f747a77e88..a2ccde49bb8564cd473c6187953d86871872c8df 100644
--- a/content/renderer/accessibility/blink_ax_tree_source.cc
+++ b/content/renderer/accessibility/blink_ax_tree_source.cc
@@ -560,8 +560,9 @@ void BlinkAXTreeSource::SerializeNode(WebAXObject src,
dst->AddStringAttribute(ui::AX_ATTR_LANGUAGE, src.Language().Utf8());
}
- if (src.KeyboardShortcut().length()) {
- dst->AddStringAttribute(ui::AX_ATTR_SHORTCUT,
+ if (src.KeyboardShortcut().length() &&
+ !dst->HasStringAttribute(ui::AX_ATTR_KEY_SHORTCUTS)) {
+ dst->AddStringAttribute(ui::AX_ATTR_KEY_SHORTCUTS,
src.KeyboardShortcut().Utf8());
}
« no previous file with comments | « content/browser/accessibility/browser_accessibility_com_win.cc ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698