OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Portions based heavily on: | 5 // Portions based heavily on: |
6 // third_party/WebKit/public/web/gtk/WebInputEventFactory.cpp | 6 // third_party/WebKit/public/web/gtk/WebInputEventFactory.cpp |
7 // | 7 // |
8 /* | 8 /* |
9 * Copyright (C) 2006-2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2006-2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 webkit_event.text[0] = | 125 webkit_event.text[0] = |
126 GetControlCharacter( | 126 GetControlCharacter( |
127 webkit_event.windowsKeyCode, | 127 webkit_event.windowsKeyCode, |
128 webkit_event.modifiers & blink::WebInputEvent::ShiftKey); | 128 webkit_event.modifiers & blink::WebInputEvent::ShiftKey); |
129 } else { | 129 } else { |
130 webkit_event.text[0] = webkit_event.unmodifiedText[0]; | 130 webkit_event.text[0] = webkit_event.unmodifiedText[0]; |
131 } | 131 } |
132 | 132 |
133 webkit_event.setKeyIdentifierFromWindowsKeyCode(); | 133 webkit_event.setKeyIdentifierFromWindowsKeyCode(); |
134 | 134 |
135 // TODO: IsAutoRepeat/IsKeyPad? | 135 // TODO: IsKeyPad? |
136 | 136 |
137 return webkit_event; | 137 return webkit_event; |
138 } | 138 } |
139 | 139 |
140 } // namespace content | 140 } // namespace content |
OLD | NEW |