currently it has become very popular to show photos for users in a browser by opening new dialog window with the darker transparent background (for instance, this is implemented in Facebook). When user presses Esc button, this dialog window turns off and user can clearly see his original page.
My question is, is it possible to disable Esc button in this dialog window when viewing photos? I don't want to disable Esc button in the whole browser (and I think it would not be possible), but I believe there should be some way to disable Esc button in dialog window... or maybe to trap Esc button in some way.
Is it possible?