Hello,
For the web application I am building it is crucial that as many of the Onselectionchange events are captured as possible, specifically the Keypress ones. I don't need to know when the users are moving the mouse cursor, but ideally I would like one event firing for every single keypress. But in IE it only fires roughly every dozen keypresses, which just isn't enough for our needs... I have tried the following:
- Digging around through the internals directory and getting down and dirty with fck_1_ie.js and the other files like it, but no luck.
- Registering a document.onkeypress event in my main page, but guess what? The fckeditor iframe is exempt from it cause it's a different document. And I cannot seem to attach that event to any of the iframes.
Does anybody have any ideas? I would be content to settle with just some way to consume any keypress events at all.
For the web application I am building it is crucial that as many of the Onselectionchange events are captured as possible, specifically the Keypress ones. I don't need to know when the users are moving the mouse cursor, but ideally I would like one event firing for every single keypress. But in IE it only fires roughly every dozen keypresses, which just isn't enough for our needs... I have tried the following:
- Digging around through the internals directory and getting down and dirty with fck_1_ie.js and the other files like it, but no luck.
- Registering a document.onkeypress event in my main page, but guess what? The fckeditor iframe is exempt from it cause it's a different document. And I cannot seem to attach that event to any of the iframes.
Does anybody have any ideas? I would be content to settle with just some way to consume any keypress events at all.
RE: Capture more onSelectionChange events in IE
case 83:
if (e.ctrlKey && top.saveCode) {
top.saveCode();
return false;
}
into /js/fckeditorcode_id_1.js inside the function Doc_OnKeyDown
"83" is the "S" key. saveCode() is a custom function of mine in my html file, where I include FCKeditor from.
You'll have to edit the gecko file if you want Mozilla support.