summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorTeemu Pòˆntelin <teemu@vaadin.com>2014-03-16 23:39:04 +0200
committerVaadin Code Review <review@vaadin.com>2014-03-18 10:48:18 +0000
commit52dcbaaf056631d98715f39b1038d1abc81f5476 (patch)
treedaa3d826fbe2fefbaad7cb919b440d0ece04e851 /client
parentc5aaf938f797f8c657ff3b9d7c02489eaf2526e9 (diff)
downloadvaadin-framework-52dcbaaf056631d98715f39b1038d1abc81f5476.tar.gz
vaadin-framework-52dcbaaf056631d98715f39b1038d1abc81f5476.zip
Pressing ESC now closes the DateField popup when using month or year resolutions. (#12317)
Change-Id: Icf7b8da00e80ea4dc4843bcd28b005b5e91b866f
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/VCalendarPanel.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/VCalendarPanel.java b/client/src/com/vaadin/client/ui/VCalendarPanel.java
index e584a21563..d1a94ffb9a 100644
--- a/client/src/com/vaadin/client/ui/VCalendarPanel.java
+++ b/client/src/com/vaadin/client/ui/VCalendarPanel.java
@@ -1193,6 +1193,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
} else if (keycode == getCloseKey()) {
// TODO fire listener, on users responsibility??
+ onCancel();
return true;
}
return false;
@@ -1244,6 +1245,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
return true;
} else if (keycode == getCloseKey() || keycode == KeyCodes.KEY_TAB) {
+ onCancel();
// TODO fire close event