Neil wrote:
myDocument.documentElement.addEventListener("keydown", onKeyDown, true);

Midas uses keypress events.

Thank you very much:-))

This is the new code I've written, and it works:

myDocument.addEventListener("keypress", onKeypress, true);

function onKeypress(evt)
{
  if (evt.ctrlKey && evt.charCode == 118)
  {
    evt.preventDefault();
  }
}


Gaetano

_______________________________________________
mozilla-editor mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-editor

Reply via email to