1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/events/ozone/layout/layout_util.h"
7 #include "ui/events/event_constants.h"
8 #include "ui/events/keycodes/dom/dom_key.h"
12 int ModifierDomKeyToEventFlag(DomKey key
) {
16 case DomKey::ALT_GRAPH
:
18 // ChromeOS uses F16 to represent CapsLock before the rewriting stage,
19 // based on the historical X11 implementation.
20 // TODO post-X11: Switch to use CapsLock uniformly.
22 case DomKey::CAPS_LOCK
:
23 return EF_CAPS_LOCK_DOWN
;
25 return EF_CONTROL_DOWN
;
29 return EF_COMMAND_DOWN
;
32 case DomKey::SHIFT_LEVEL5
:
43 // DomKey::SCROLL_LOCK
45 // DomKey::SYMBOL_LOCK