1 // Copyright 2013 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 "content/browser/renderer_host/input/web_input_event_util_posix.h"
9 ui::KeyboardCode GetWindowsKeyCodeWithoutLocation(ui::KeyboardCode key_code) {
11 case ui::VKEY_LCONTROL:
12 case ui::VKEY_RCONTROL:
13 return ui::VKEY_CONTROL;
16 return ui::VKEY_SHIFT;
25 blink::WebInputEvent::Modifiers GetLocationModifiersFromWindowsKeyCode(
26 ui::KeyboardCode key_code) {
28 case ui::VKEY_LCONTROL:
32 return blink::WebKeyboardEvent::IsLeft;
33 case ui::VKEY_RCONTROL:
37 return blink::WebKeyboardEvent::IsRight;
39 return static_cast<blink::WebInputEvent::Modifiers>(0);
43 } // namespace content