Changeset 12911


Ignore:
Timestamp:
02/28/09 14:59:42 (3 years ago)
Author:
sys
Message:

text editor amélioration navigation flèche gauche / droite sur extBlock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_XedLib/chrome/content/scenarixedlib/libUiExtra/scRichText/textBase.xbl.xml

    r12852 r12911  
    54845484                                                                var vOffset = vRange.startOffset; 
    54855485                                                                if(vOffset==0) { 
    5486                                                                         this.moveCaretOut(vNode, true); 
     5486                                                                        this.moveCaretOut(vNode.firstChild||vNode, true); 
    54875487                                                                        pEvent.preventDefault(); 
    54885488                                                                } else if(vNode.nodeType==3){ 
     
    55095509                                                                } else { 
    55105510                                                                        if(vOffset == vNode.childNodes.length) { 
    5511                                                                                 this.moveCaretOut(vNode, false); 
     5511                                                                                this.moveCaretOut(vOffset==0 ? vNode : vNode.lastChild, false); 
    55125512                                                                        } else { 
    55135513                                                                                this.moveCaretIn(vNode.childNodes.item(vOffset), true); 
Note: See TracChangeset for help on using the changeset viewer.