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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 6369009: Ignore the Search key accelerator on Chrome OS when accessibility is enabled,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view.cc (revision 71928)
+++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
@@ -605,6 +605,17 @@
}
bool BrowserView::AcceleratorPressed(const views::Accelerator& accelerator) {
+#if defined(OS_CHROMEOS)
+ // If accessibility is enabled, ignore accelerators involving the Search
+ // key so that key combinations involving Search can be used for extra
+ // accessibility functionality.
+ if (accelerator.GetKeyCode() == ui::VKEY_LWIN &&
+ browser_->profile()->GetPrefs()->GetBoolean(
+ prefs::kAccessibilityEnabled)) {
+ return false;
+ }
+#endif
+
std::map<views::Accelerator, int>::const_iterator iter =
accelerator_table_.find(accelerator);
DCHECK(iter != accelerator_table_.end());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698