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

Unified Diff: chrome/browser/ui/views/exclusive_access_bubble_views.cc

Issue 2110743002: Mac: Use "esc" rather than "Esc" in "Press Esc to exit full screen". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « 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/exclusive_access_bubble_views.cc
diff --git a/chrome/browser/ui/views/exclusive_access_bubble_views.cc b/chrome/browser/ui/views/exclusive_access_bubble_views.cc
index b67c9378e3143485cdbf322024e9a3a57890a220..b556c88b3dbddd219b87d267ca7472b4ff7f5870 100644
--- a/chrome/browser/ui/views/exclusive_access_bubble_views.cc
+++ b/chrome/browser/ui/views/exclusive_access_bubble_views.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "base/i18n/case_conversion.h"
#include "base/location.h"
#include "base/macros.h"
#include "base/single_thread_task_runner.h"
@@ -175,6 +176,12 @@ void ExclusiveAccessBubbleViews::UpdateViewContent(
link_visible = false;
}
}
+#if defined(OS_MACOSX)
+ // Mac keyboards use lowercase for everything except function keys, which are
+ // typically reserved for system use. Since |accelerator| is placed in a box
+ // to make it look like a keyboard key it looks weird to not follow suit.
+ accelerator = base::i18n::ToLower(accelerator);
+#endif
base::string16 link_text;
base::string16 exit_instruction_text;
if (link_visible) {
« 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