From 582622cddc7d5fc4227119368670d0be64b9b46f Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Fri, 3 Sep 2010 06:37:20 +0000 Subject: [PATCH] key up listener for helper class svn changeset:14704/svn branch:6.4 --- .../vaadin/terminal/gwt/client/ui/SimpleFocusablePanel.java | 6 ++++++ 1 file changed, 6 insertions(+) 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()); -- 2.39.5