Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix bug: cannot change page of enter number on page indicator: https:…
  • Loading branch information
Alex Eng committed Oct 20, 2011
1 parent 0085dc7 commit 4c7f0e7
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -7,8 +7,8 @@
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.event.dom.client.KeyDownEvent;
import com.google.gwt.event.dom.client.KeyDownHandler;
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.event.shared.HandlerRegistration;
Expand Down Expand Up @@ -66,11 +66,10 @@ public Pager(final WebTransMessages messages, final Resources resources)
protected void onLoad()
{
super.onLoad();
gotoPage.addKeyUpHandler(new KeyUpHandler()
gotoPage.addKeyDownHandler(new KeyDownHandler()
{

@Override
public void onKeyUp(KeyUpEvent event)
public void onKeyDown(KeyDownEvent event)
{
if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER)
{
Expand Down

0 comments on commit 4c7f0e7

Please sign in to comment.