Key Listener called again and again if I click on Browser's back Button with Activity and Places in GWT -


i creating search page , have use activity , places in gwt. have used key listener when user press enter redirect user on result page. problem when user use browser button , again press enter key listener call twice same if user again click button next time call trice , on. there solution this?

you're adding listener when activity starts never remove (e.g. when activity stops).

the full solution depends how code activity (do reuse activity instances? have separate view activity acting presenter/controller? if so, view singleton, or @ list lives longer activity , can reused activity instance? etc.)


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -