Shortcut Listener Removed From Button

Hey All,
I have button(“Search”) in popup view that has shorcut key-enter, and another button “more fileds”.
“more fileds” button is loading another page(not pop up) with the same fields(including “search” button) of the popup and more.
The component of the “search button” is different between the page and the popup view.
After I opened the page, when I’m returning to the popup view without closing the page I hit enter and the “Search” button in the page is hit! not the enter of the popup view, even the focus is on the popup.
When I’m closing the page, the shortcut key is working again in the popup.
Any suggestions how the search button of the popup can work always?
Thanks.

Can you provide your code?

You could try adding a ShortcutListener to the UI instead?

-Olli