aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2018-03-26 10:03:44 +0300
committerGitHub <noreply@github.com>2018-03-26 10:03:44 +0300
commit7370e68fd52e0a2918d91fede5dddf3bb6e674f7 (patch)
treee596f363b42b754e92fc191f3a54ef00b0e9fe26 /client
parent00c3f2c37c104498e23bd8f25dfd5ab8ce65294b (diff)
downloadvaadin-framework-7370e68fd52e0a2918d91fede5dddf3bb6e674f7.tar.gz
vaadin-framework-7370e68fd52e0a2918d91fede5dddf3bb6e674f7.zip
Fix grid spacebar handling (#10750)
* Fix spacebar handling
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/widget/grid/selection/SpaceSelectHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/widget/grid/selection/SpaceSelectHandler.java b/client/src/main/java/com/vaadin/client/widget/grid/selection/SpaceSelectHandler.java
index 59c78b313d..799a4c4d00 100644
--- a/client/src/main/java/com/vaadin/client/widget/grid/selection/SpaceSelectHandler.java
+++ b/client/src/main/java/com/vaadin/client/widget/grid/selection/SpaceSelectHandler.java
@@ -40,7 +40,8 @@ public class SpaceSelectHandler<T> {
@Override
public void onKeyDown(GridKeyDownEvent event) {
- if (event.getNativeKeyCode() != KeyCodes.KEY_SPACE || spaceDown) {
+ if (event.getNativeKeyCode() != KeyCodes.KEY_SPACE || spaceDown
+ || grid.isEditorActive()) {
return;
}