artDialog
artDialog copied to clipboard
点击esc会关闭已经hide的dialog
通常调用hide后是为了后续可以继续展示.
建议_esc方法在判定时应该增加对当前窗口是否打开的检查.
// 避免输入状态中 ESC 误操作关闭 if (!that.open || !isTop || rinput.test(nodeName) && target.type !== 'button') { return; }
我是修改源代码直接删除了按esc取消弹出框的方法
add option below: cancel: function(e) { if(e && e.keyCode == 27) return false; }