Leopard20 813 Posted August 1, 2018 Hey guys. I'm making a mod which creates a display every time the user presses a key. I also add some keyDown event handlers to this display. I was wondering whether or not I should add the keyDown event handler every time it's created? In other words, when a display is closed, are its added event handlers removed or not? Share this post Link to post Share on other sites
MrCopyright 107 Posted August 1, 2018 If the display is completely closed, then you will need to re-assign the event handlers when the display is re-created. 1 Share this post Link to post Share on other sites
Leopard20 813 Posted August 1, 2018 6 minutes ago, MrCopyright said: If the display is completely closed, then you will need to re-assign the event handlers when the display is re-created. Thanks for your input. I close the display in two ways: 1. By pressing Esc. 2. By using (_display closeDisplay 2) Does it mean it's completely closed in both cases? Share this post Link to post Share on other sites
Leopard20 813 Posted August 1, 2018 4 minutes ago, MrCopyright said: Yes. OK. Thanks for your help! Share this post Link to post Share on other sites
MrCopyright 107 Posted August 1, 2018 You're welcome. Share this post Link to post Share on other sites