GWT - 在SuggestBox中禁用KeyUpHandler

时间:2014-04-25 16:08:33

标签: gwt

有关如何在com.google.gwt.user.client.ui.SuggestBox中禁用KeyUpHandler的任何想法?

https://github.com/gwtproject/gwt/blob/master/user/src/com/google/gwt/user/client/ui/SuggestBox.java

1 个答案:

答案 0 :(得分:0)

添加KeyUpHandler时,此方法返回HandlerRegistration对象。当您不再需要此处理程序时,请调用:

myHandlerRegistration.removeHandler();