mylomen-server/static/js/event/impl/CancelEventImpl.js

26 lines
695 B
JavaScript
Raw Normal View History

2024-11-05 22:43:34 +08:00
"use strict";
/**
* 撤销事件
*/
define(function (require, exports, module) {
function handle(e) {
const utils = require('../../common/utils');
const ctx = require('../../common/ctx');
let event = utils.ParseEvent(e);
console.log('触发ctrl + Z 事件', event.target)
2024-11-05 22:45:56 +08:00
// if (ctx.latestOpDoc !== undefined && ctx.latestOpDoc !== null) {
// //恢复
// ctx.latestOpDoc.recovery();
// //测试展示
// ctx.showTestText()
// //阻止事件
// utils.ProhibitDefaultEvent(event);
// }
2024-11-05 22:43:34 +08:00
ctx.latestOpDoc = null
}
//导出
exports.handle = handle;
});