This commit is contained in:
shaoyongjun 2024-11-05 22:45:56 +08:00
parent 0bd5a87973
commit 795da149a7

View File

@ -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
}