mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-22 02:10:42 +00:00
prevent dom-flickering
This commit is contained in:
@@ -2254,7 +2254,10 @@ var _CPCopyPlaceholder = '-';
|
||||
}
|
||||
|
||||
var currentFirstResponder = [[CPApp mainWindow] firstResponder];
|
||||
[currentFirstResponder paste:self];
|
||||
|
||||
setTimeout(function(){ // prevent dom-flickering
|
||||
[currentFirstResponder paste:self];
|
||||
}, 20);
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user