[chromium] Halt in progress flings on receipt of key events
[WebKit-https.git] / Source / WebKit / chromium / src / WebCompositorInputHandlerImpl.cpp
index 205cd25b23de7929a1ee391aa094b74fb92c4370..b4e2675cd2a4d9d6533a355e07979169095ec822 100644 (file)
@@ -248,6 +248,8 @@ WebCompositorInputHandlerImpl::EventDisposition WebCompositorInputHandlerImpl::h
     } else if (event.type == WebInputEvent::GestureFlingCancel) {
         if (cancelCurrentFling())
             return DidHandle;
     } else if (event.type == WebInputEvent::GestureFlingCancel) {
         if (cancelCurrentFling())
             return DidHandle;
+    } else if (WebInputEvent::isKeyboardEventType(event.type)) {
+         cancelCurrentFling();
     }
 
     return DidNotHandle;
     }
 
     return DidNotHandle;