mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-14 07:00:53 +00:00
为了解决linux下重复粘贴的问题
This commit is contained in:
@@ -2177,6 +2177,17 @@ $(function() {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}, false);
|
||||
|
||||
// 为了解决linux下重复粘贴的问题
|
||||
var everPaste;
|
||||
$('#left-column').on('paste', function (e) {
|
||||
var now = (new Date()).getTime();
|
||||
if (everPaste && now - everPaste < 100) {
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
everPaste = now;
|
||||
});
|
||||
});
|
||||
|
||||
// markdown editor v2
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user