Dual Monitors
All  1-13  14-17

Previous
Next
 From:  dan (DANLANIGAN)
7394.14 In reply to 7394.7 
Hi Michael,

I have implemented the separable browser pane as described in this post and it works well for me. One thing that I find frustrating is that if I press the esc key while the browser window has focus it closes it. Is there some way to make the separate browser window persist through an escape key stroke event?

BTW: I'm not sure why I press the escape key as often as I do, I think it may be some sort of subconscious OCD behaviour which I should look to address separately.

Thanks

Dan.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  dan (DANLANIGAN)
7394.15 In reply to 7394.14 
Michael,

I did a little research and think maybe this code snippet will help but I don't know where to place it.

var myWindow = window.open();

myWindow.onkeydown = function(e){
if(e.keyCode === 27){
e.preventDefault();
}
};
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
7394.16 In reply to 7394.14 
Hi Dan, unfortunately I don't think it's possible currently to disable the escape key closing a dialog that has keyboard focus.

The escape key handling happens at a low level in MoI's UI code, so it's not really feasible for a script to try and intercept it.

Once the MoI v4 beta starts up, if you mention this again at that time I could make the keyboard handler look for some property on the dialog and not close it by escape in that case.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  dan (DANLANIGAN)
7394.17 In reply to 7394.16 
Thanks Michael,

I'll keep an eye out for the v4 beta release.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-13  14-17