Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Don't loose your changes when hitting Cmd-Left in Firefox editors' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Don't loose your changes when hitting Cmd-Left in Firefox editors
Authored by: palahala on Jan 18, '09 03:03:32PM
The problem: within some editors, such as TinyMCE, Firefox (on a MacBook) will handle Cmd-Left as "go back one page" rather than "go to the start of the current line". Likewise, Cmd-Right will take you forward a page, but as in most cases there won't be a page to forward to, this often results in moving the cursor to the end of the current line after all.

To see the effect: go to http://tinymce.moxiecode.com and from that page go forward to Examples, and then forward to Documentation. Now, go back one page. Back in the Examples change some text and hit Cmd-Left while the cursor is still within the editor. Firefox will take you back yet another page, loosing any changes you made. Here Safari would set the cursor to the start of the current line. Likewise, for Cmd-Right Firefox takes you forward to Documentation, where Safari would move the cursor to the end of the current line.

The solution is simple: use the add-on "keyconfig" from http://forums.mozillazine.org/viewtopic.php?t=72994 After installing go to menu Tools, Keyconfig and choose Disable for the combination "Back: Cmd + Left Arrow". Likewise disable "Forward: Cmd + Right Arrow". That's all. To navigate use Cmd-[ and Cmd-].

As for the original hint: maybe instead of changing browser.backspace_action one could also use "keyconfig" to disable the combination "Back: Backspace".

[ Reply to This | # ]