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'); 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
} }