Reviewed by Ken.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Feb 2005 21:09:58 +0000 (21:09 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Feb 2005 21:09:58 +0000 (21:09 +0000)
        <rdar://problem/3990693> REGRESSION (8A373): ctrl-k now deletes just one character instead of line

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
        Set the selection so that deleteKeyPressedWithSmartDelete knows what to delete.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8537 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebView.subproj/WebHTMLView.m

index d6b5f5dae3252db5affe0315d7e13d0e0e3245c4..d446507f6467dc3690aafd91f000924305f4d0c8 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-07  David Harrison  <harrison@apple.com>
+
+        Reviewed by Ken.
+
+        <rdar://problem/3990693> REGRESSION (8A373): ctrl-k now deletes just one character instead of line
+        
+        * WebView.subproj/WebHTMLView.m:
+        (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
+        Set the selection so that deleteKeyPressedWithSmartDelete knows what to delete.
+
 2005-02-06  Darin Adler  <darin@apple.com>
 
         Reviewed by Maciej.
index 586699013fcd8bbe33864c353ef148939c6b2ba1..7fc3b6aa2382b61764d6cfcce0d6e2c4a06fb691 100644 (file)
@@ -3960,11 +3960,13 @@ NSStrokeColorAttributeName        /* NSColor, default nil: same as foreground co
             case WebSelectForward:
             case WebSelectRight:
                 [self _handleKillRing:killRing prepend:NO];
+                [bridge setSelectedDOMRange:range affinity:NSSelectionAffinityUpstream];
                 [bridge forwardDeleteKeyPressedWithSmartDelete:NO];
                 break;
             case WebSelectBackward:
             case WebSelectLeft:
                 [self _handleKillRing:killRing prepend:YES];
+                [bridge setSelectedDOMRange:range affinity:NSSelectionAffinityUpstream];
                 [bridge deleteKeyPressedWithSmartDelete:NO];
                 break;
         }