Using CKEditor 3.2.1 (loaded via the WYSIWYG Drupal Module) in Firefox 3.6.3 on a Mac Running OS X 10.5.8, I'm running into an issue with hotkeys.
In a normal textarea window in the above setup, hitting COMMAND+LEFT_ARROW or COMMAND+RIGHT_ARROW jumps the cursor to the beginning or end of a line of text, respectively. However, when the same hotkey is hit inside the CKEditor window, Firefox fails to recognize it's a text area and falls back to using the hot keys to jump the window forward or backward in the browser history. Returning to the page, any text that was in the CKEdiotr textarea is gone.
Is there a way to update the configuration of CKEditor so that it either captures those hotkey hits or let's firefox know that it should treat the CKEditor window the same as a textarea when it comes to those hot keys?
(As a side note, when hitting SHIFT+COMMAND+L|R_ARROW inside the CKEditor window results in the expected behavior of jumping the cursor to the start/end of the line while selecting text. It's just when an attempt it made to jump with out the SHIFT/selection that the issue occurs.
Thanks.
In a normal textarea window in the above setup, hitting COMMAND+LEFT_ARROW or COMMAND+RIGHT_ARROW jumps the cursor to the beginning or end of a line of text, respectively. However, when the same hotkey is hit inside the CKEditor window, Firefox fails to recognize it's a text area and falls back to using the hot keys to jump the window forward or backward in the browser history. Returning to the page, any text that was in the CKEdiotr textarea is gone.
Is there a way to update the configuration of CKEditor so that it either captures those hotkey hits or let's firefox know that it should treat the CKEditor window the same as a textarea when it comes to those hot keys?
(As a side note, when hitting SHIFT+COMMAND+L|R_ARROW inside the CKEditor window results in the expected behavior of jumping the cursor to the start/end of the line while selecting text. It's just when an attempt it made to jump with out the SHIFT/selection that the issue occurs.
Thanks.

Re: Prevent hotkey from jumping pages while editing text
That said, if anyone knows a work around, that would be most appreciated.
Re: Prevent hotkey from jumping pages while editing text
Code for the script is:
document.addEventListener('keypress', function (evt) { // grab the meta key var isCmd = evt.metaKey; // check to see if it is pressed if(isCmd) { // if so, grab the key code; var kCode = evt.keyCode; // see if it's left or right arrow key if(kCode == 37 || kCode == 39) { // prevent the default from firing if it is. evt.preventDefault(); } } }, false );