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

Unified Diff: chrome/browser/chromeos/events/event_rewriter.cc

Issue 187313002: Update StickyKeys overlay to show or hide AltGr depending on the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow changing visibility of all keys in overlay Created 6 years, 10 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
Index: chrome/browser/chromeos/events/event_rewriter.cc
diff --git a/chrome/browser/chromeos/events/event_rewriter.cc b/chrome/browser/chromeos/events/event_rewriter.cc
index 567cb996f4b5fc2eec32ee280af2cf301788e446..c1e5ef03c2c38e275e32ab2f99dec26685c1ca8c 100644
--- a/chrome/browser/chromeos/events/event_rewriter.cc
+++ b/chrome/browser/chromeos/events/event_rewriter.cc
@@ -42,9 +42,6 @@ namespace {
const int kBadDeviceId = -1;
-const char kNeo2LayoutId[] = "xkb:de:neo:ger";
-const char kCaMultixLayoutId[] = "xkb:ca:multix:fra";
-
// A key code and a flag we should use when a key is remapped to |remap_to|.
const struct ModifierRemapping {
int remap_to;
@@ -128,8 +125,7 @@ bool IsMod3UsedByCurrentInputMethod() {
// TODO(yusukes): Remove the restriction.
chromeos::input_method::InputMethodManager* manager =
chromeos::input_method::InputMethodManager::Get();
- return manager->GetCurrentInputMethod().id() == kNeo2LayoutId ||
- manager->GetCurrentInputMethod().id() == kCaMultixLayoutId;
+ return manager->IsMod3UsedByCurrentInputMethod();
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698