aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2014-11-24 12:11:16 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2014-11-24 12:11:16 +0200
commitfe1e44e76340ce3aebc6d108a9ffd20ef2e70cbe (patch)
tree047a06ee9750d1e1cd7fcbe12aae166ba9836f6e
parent7d4e5cb0a98fbc3c397c6c74385210e4ac5b3811 (diff)
downloadvaadin-framework-fe1e44e76340ce3aebc6d108a9ffd20ef2e70cbe.tar.gz
vaadin-framework-fe1e44e76340ce3aebc6d108a9ffd20ef2e70cbe.zip
Prevent page scroll on space select (#13334)
Change-Id: I8d303fd6679a0bd6a1f68b9983f269c3dc89fe5d
-rw-r--r--client/src/com/vaadin/client/ui/grid/selection/MultiSelectionRenderer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/grid/selection/MultiSelectionRenderer.java b/client/src/com/vaadin/client/ui/grid/selection/MultiSelectionRenderer.java
index 8cffd6042b..87380f0e2a 100644
--- a/client/src/com/vaadin/client/ui/grid/selection/MultiSelectionRenderer.java
+++ b/client/src/com/vaadin/client/ui/grid/selection/MultiSelectionRenderer.java
@@ -551,6 +551,9 @@ public class MultiSelectionRenderer<T> extends ComplexRenderer<Boolean> {
return;
}
+ // Prevent space page scrolling
+ event.getNativeEvent().preventDefault();
+
spaceDown = true;
Cell focused = event.getFocusedCell();
final int rowIndex = focused.getRow();