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');
|
const ctx = require('../../common/ctx');
|
||||||
let event = utils.ParseEvent(e);
|
let event = utils.ParseEvent(e);
|
||||||
console.log('触发ctrl + Z 事件', event.target)
|
console.log('触发ctrl + Z 事件', event.target)
|
||||||
if (ctx.latestOpDoc !== undefined && ctx.latestOpDoc !== null) {
|
// if (ctx.latestOpDoc !== undefined && ctx.latestOpDoc !== null) {
|
||||||
//恢复
|
// //恢复
|
||||||
ctx.latestOpDoc.recovery();
|
// ctx.latestOpDoc.recovery();
|
||||||
//测试展示
|
// //测试展示
|
||||||
ctx.showTestText()
|
// ctx.showTestText()
|
||||||
//阻止事件
|
// //阻止事件
|
||||||
utils.ProhibitDefaultEvent(event);
|
// utils.ProhibitDefaultEvent(event);
|
||||||
}
|
// }
|
||||||
|
|
||||||
ctx.latestOpDoc = null
|
ctx.latestOpDoc = null
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user