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

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: static const 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
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 ec12655a2494b0b90fcb296d08467cd85424f1cc..06ab9cad354b845caf2316106fea12db63e3d2b3 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -500,6 +500,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);

Powered by Google App Engine
This is Rietveld 408576698