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

Side by Side Diff: content/browser/renderer_host/web_input_event_aurax11.cc

Issue 402613010: Fix DOM KeyboardEvent 'repeat' state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/ui_events_helper.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/ui_events_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698