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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 11417144: Use rewriting to make ChromeOS keyboard F<number> keys produce extended keycodes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding3 Created 8 years, 1 month 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 | « chrome/browser/ui/ash/brightness_controller_chromeos.cc ('k') | chrome/browser/ui/ash/event_rewriter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index 6c555a6fa53750688036a9901547a151ba08aadb..eddf03c29df57a8550f6fda367b1e13e5b162e7e 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -539,6 +539,11 @@ bool ChromeShellDelegate::IsSearchKeyActingAsFunctionKey() const {
if (!chromebook_function_key)
return false;
+ bool chromeos_keyboard = CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kHasChromeOSKeyboard);
+ if (!chromeos_keyboard)
+ return false;
+
Profile* profile = ProfileManager::GetDefaultProfile();
return profile->GetPrefs()->GetBoolean(
prefs::kLanguageSearchKeyActsAsFunctionKey);
« no previous file with comments | « chrome/browser/ui/ash/brightness_controller_chromeos.cc ('k') | chrome/browser/ui/ash/event_rewriter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698