aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2010-09-03 06:37:20 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2010-09-03 06:37:20 +0000
commit582622cddc7d5fc4227119368670d0be64b9b46f (patch)
tree83b2dcf60d2b9021004c272effe3f4ae455a5770 /src/com/vaadin
parentdf0ac18674da3b197150a2b86713e7c4a26cde9f (diff)
downloadvaadin-framework-582622cddc7d5fc4227119368670d0be64b9b46f.tar.gz
vaadin-framework-582622cddc7d5fc4227119368670d0be64b9b46f.zip
key up listener for helper class
svn changeset:14704/svn branch:6.4
Diffstat (limited to 'src/com/vaadin')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/SimpleFocusablePanel.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/SimpleFocusablePanel.java b/src/com/vaadin/terminal/gwt/client/ui/SimpleFocusablePanel.java
index b534e3faba..8511df2196 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/SimpleFocusablePanel.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/SimpleFocusablePanel.java
@@ -12,6 +12,8 @@ import com.google.gwt.event.dom.client.KeyDownEvent;
import com.google.gwt.event.dom.client.KeyDownHandler;
import com.google.gwt.event.dom.client.KeyPressEvent;
import com.google.gwt.event.dom.client.KeyPressHandler;
+import com.google.gwt.event.dom.client.KeyUpEvent;
+import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.impl.FocusImpl;
@@ -47,6 +49,10 @@ public class SimpleFocusablePanel extends SimplePanel implements
return addDomHandler(handler, KeyPressEvent.getType());
}
+ public HandlerRegistration addKeyUpHandler(KeyUpHandler handler) {
+ return addDomHandler(handler, KeyUpEvent.getType());
+ }
+
public void setFocus(boolean focus) {
if (focus) {
FocusImpl.getFocusImplForPanel().focus(getElement());