Hotkeys still working on a window even after hiding it

when i added an ‘enter’ hotkey for a button on a window it still triggers after i hide the window.
is this a bug or is there something i am missing in my code?

Hello,

We will fix the issue in the next version.

You can check button visibility in event handler before the new version release :

$$("myBtn").attachEvent("onItemClick",function(){
    if(this.isVisible()){
          // your code
    }    
})