mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 15:41:19 +00:00
为了解决linux下重复粘贴的问题
This commit is contained in:
@@ -2177,6 +2177,17 @@ $(function() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}, false);
|
}, 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
|
// markdown editor v2
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user