- fixed <rdar://problem/
4019823> Seed: Control-Y doesn't work
* WebView.subproj/WebHTMLView.m:
(-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Call _handleKillRing
after setting the selection, since it uses the selection to get the text.
(-[WebHTMLView _insertText:selectInsertedText:]): Check for empty string to avoid an assertion
on the other side of the bridge when you yank the empty string.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8697
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-02-25 Darin Adler <darin@apple.com>
+
+ Reviewed by John.
+
+ - fixed <rdar://problem/4019823> Seed: Control-Y doesn't work
+
+ * WebView.subproj/WebHTMLView.m:
+ (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Call _handleKillRing
+ after setting the selection, since it uses the selection to get the text.
+ (-[WebHTMLView _insertText:selectInsertedText:]): Check for empty string to avoid an assertion
+ on the other side of the bridge when you yank the empty string.
+
2005-02-24 Richard Williamson <rjw@apple.com>
Fixed <rdar://problem/3382926> Bidi neutrals at RTL/LTR boundaries not handled correctly.
switch (direction) {
case WebSelectForward:
case WebSelectRight:
- [self _handleKillRing:killRing prepend:NO];
[bridge setSelectedDOMRange:range affinity:NSSelectionAffinityDownstream];
+ [self _handleKillRing:killRing prepend:NO];
[bridge forwardDeleteKeyPressedWithSmartDelete:NO];
break;
case WebSelectBackward:
case WebSelectLeft:
- [self _handleKillRing:killRing prepend:YES];
[bridge setSelectedDOMRange:range affinity:NSSelectionAffinityDownstream];
+ [self _handleKillRing:killRing prepend:YES];
[bridge deleteKeyPressedWithSmartDelete:NO];
break;
}
- (void)_insertText:(NSString *)text selectInsertedText:(BOOL)selectText
{
- if (text == nil || (![self _isEditable] && ![self hasMarkedText])) {
+ if (text == nil || [text length] == 0 || (![self _isEditable] && ![self hasMarkedText])) {
return;
}