Changeset 813

Show
Ignore:
Timestamp:
2007-09-14 10:59:01 (15 months ago)
Author:
martinkou
Message:

Fix for #332 : Added a workaround for Opera bug which caused the caret to freeze in respect to left arrow keys.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fck_gecko.js

    r812 r813  
    124124                        if ( nextTextNode ) 
    125125                        { 
     126                                // Opera thinks the dummy empty text node we append beyond the end of <a> nodes occupies a caret 
     127                                // position. So if the user presses the left key and we reset the caret position here, the user 
     128                                // wouldn't be able to go back. 
     129                                if ( FCKBrowserInfo.IsOpera && keyCode == 37 ) 
     130                                        return ; 
     131 
    126132                                // now we want to get out of our current parent node, adopt the next parent, and move the caret to  
    127133                                // the appropriate text node under our new parent.