Open
      
        Bug 1327699
      
      
        Opened 8 years ago
          Updated 4 years ago
      
        
    
  
Ctrl+Alt Text selection in codemirror instances always sets left-to-right direction to selection range
Categories
(DevTools :: Source Editor, defect, P3)
        DevTools
          
        
        
      
        
    
        Source Editor
          
        
        
      
        
    Tracking
(Not tracked)
        NEW
        
        
    
  
People
(Reporter: arni2033, Unassigned)
Details
>>>   My Info:   Win7_64, Nightly 49, 32bit, ID 20160526082509
STR_1:
1. Open scratchpad, type/paste there "heLlo woRld"
2. Select "eL" in "heLlo" with mouse (from left to right!)
3. Hold Ctrl+Alt, then select "oR" in "woRld" with mouse (from right to left!). Release Alt and Ctrl.
4. Press Shift+Right to change selection
AR:  Selected strings - "eLl" and "oRl"
ER:  Selected strings - "eLl" and "R"  (See Note 2)
STR_2:  (reference of good behavior)
1. Open scratchpad, type/paste there "heLlo woRld"
2. Select "eL" in "heLlo" with mouse (from left to right!)
3. Hold Ctrl, then select "oR" in "woRld" with mouse (from right to left!). Release Ctrl.
4. Press Shift+Right to change selection
AR:  Selected strings - "eLl" and "R", just as expected  (See Note 2)
Notes:
1) �aret in selection range is placed at the right if selection was made from left to right, and at
   the left otherwise. That's what I call "direction" (this is how I understand this as a user).
2) Extended expectations:  Consistency, i.e. either X or Y
 X) If Ctrl+Alt selection tries to help user by guessing direction of selection range,
    Ctrl selection should also use the same logic and always set left-to-right direction for range.
 Y) If there's no intended additional logic, Ctrl+Alt should respect direction of text selection
          Updated•7 years ago
           
         | 
      
Product: Firefox → DevTools
          Updated•4 years ago
           
         | 
      
Severity: normal → S3
Priority: -- → P3
          Comment 1•4 years ago
           
         | 
      ||
Note: reproducible in other codemirror instances...
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•