to:sync
This commit is contained in:
parent
0bd5a87973
commit
795da149a7
@ -9,14 +9,14 @@ define(function (require, exports, module) {
|
||||
const ctx = require('../../common/ctx');
|
||||
let event = utils.ParseEvent(e);
|
||||
console.log('触发ctrl + Z 事件', event.target)
|
||||
if (ctx.latestOpDoc !== undefined && ctx.latestOpDoc !== null) {
|
||||
//恢复
|
||||
ctx.latestOpDoc.recovery();
|
||||
//测试展示
|
||||
ctx.showTestText()
|
||||
//阻止事件
|
||||
utils.ProhibitDefaultEvent(event);
|
||||
}
|
||||
// if (ctx.latestOpDoc !== undefined && ctx.latestOpDoc !== null) {
|
||||
// //恢复
|
||||
// ctx.latestOpDoc.recovery();
|
||||
// //测试展示
|
||||
// ctx.showTestText()
|
||||
// //阻止事件
|
||||
// utils.ProhibitDefaultEvent(event);
|
||||
// }
|
||||
|
||||
ctx.latestOpDoc = null
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user