mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-03 21:58:59 +00:00
Fixed: paste in Firefox.
The paste into input field hack requires that we don't stop the Cmd-V/Ctrl-V keydown propagation.
This commit is contained in:
1 parent
198857e0ad
commit
5d07eb7316
1 file changed
+6
-9
@@ -825,6 +825,7 @@ var resizeTimer = nil;
|
||||
_DOMPasteboardElement.select();
|
||||
_DOMPasteboardElement.value = "";
|
||||
|
||||
StopDOMEventPropagation = NO;
|
||||
isNativePasteEvent = YES;
|
||||
}
|
||||
}
|
||||
@@ -889,16 +890,10 @@ var resizeTimer = nil;
|
||||
|
||||
// If we are using the paste into field hack, we need to check it in a moment.
|
||||
if (!supportsNativeCopyAndPaste)
|
||||
{
|
||||
// Only stop the event if we're using the paste hack. Otherwise we'll handle it with
|
||||
// our onpaste handler.
|
||||
StopDOMEventPropagation = YES;
|
||||
window.setNativeTimeout(function () { [self _checkPasteboardElement]; }, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
StopDOMEventPropagation = NO;
|
||||
}
|
||||
|
||||
// We need the event to propagate or nothing will be pasted.
|
||||
StopDOMEventPropagation = NO;
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -957,6 +952,8 @@ var resizeTimer = nil;
|
||||
CPDOMEventStop(aDOMEvent, self);
|
||||
|
||||
[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];
|
||||
|
||||
return !StopDOMEventPropagation
|
||||
}
|
||||
|
||||
- (CPEvent)_fakeClipboardEvent:(DOMEvent)aDOMEvent type:(CPString)aType
|
||||
|
||||
Reference in new issue
Block a user