| Index: ui/events/base_event_utils.cc
|
| diff --git a/ui/events/base_event_utils.cc b/ui/events/base_event_utils.cc
|
| index 30854bc90b31134540098fa3b9f2b30448acca1f..ffff0f1da12e42f4475ba7fcd36d22c80f50b82f 100644
|
| --- a/ui/events/base_event_utils.cc
|
| +++ b/ui/events/base_event_utils.cc
|
| @@ -34,7 +34,10 @@ uint32 GetNextTouchEventId() {
|
| }
|
|
|
| bool IsSystemKeyModifier(int flags) {
|
| - return (kSystemKeyModifierMask & flags) != 0;
|
| + // AltGr modifier is used to type alternative keys on certain keyboard layouts
|
| + // so we don't consider keys with the AltGr modifier as a system key.
|
| + return (kSystemKeyModifierMask & flags) != 0 &&
|
| + (EF_ALTGR_DOWN & flags) == 0;
|
| }
|
|
|
| } // namespace ui
|
|
|