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

Unified Diff: sky/engine/core/events/KeyboardEvent.cpp

Issue 880473003: sky-scrollable should use a reasonable fling curve (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Now with heights Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/events/KeyboardEvent.cpp
diff --git a/sky/engine/core/events/KeyboardEvent.cpp b/sky/engine/core/events/KeyboardEvent.cpp
index dde48ac3facccfae9d19222e14fb758685799d25..08dbe7174f78964ddf63bd1e15ee4279aadd60eb 100644
--- a/sky/engine/core/events/KeyboardEvent.cpp
+++ b/sky/engine/core/events/KeyboardEvent.cpp
@@ -60,6 +60,8 @@ KeyboardEvent::KeyboardEvent(const WebKeyboardEvent& event)
, m_metaKey(event.modifiers & WebInputEvent::MetaKey)
, m_repeat(event.modifiers & WebInputEvent::IsAutoRepeat)
{
+ m_timeStamp = event.timeStampMS;
+
if (event.type == WebInputEvent::KeyDown || event.type == WebInputEvent::KeyUp) {
m_charCode = 0;
} else if (event.type == WebInputEvent::Char) {

Powered by Google App Engine
This is Rietveld 408576698