Chromium Code Reviews| Index: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
| diff --git a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
| index e5b1abc0ea5fc708f0b649f2ad4964ecd31799f9..68097e6564e09292bc1e920e98b107bfccdbdf19 100644 |
| --- a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
| +++ b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
| @@ -89,8 +89,8 @@ WebInputEventResult KeyboardEventManager::keyEvent( |
| capsLockStateMayHaveChanged(); |
| #if OS(WIN) |
|
bokan
2016/09/07 16:33:46
Should we remove this #if?
|
| - if (m_scrollManager->panScrollInProgress()) { |
| - // If a key is pressed while the panScroll is in progress then we want to stop |
| + if (m_scrollManager->middleClickAutoscrollInProgress()) { |
| + // If a key is pressed while the middleClickAutoscroll is in progress then we want to stop |
| if (initialKeyEvent.type == WebInputEvent::KeyDown || initialKeyEvent.type == WebInputEvent::RawKeyDown) |
| m_scrollManager->stopAutoscroll(); |