artDialog icon indicating copy to clipboard operation
artDialog copied to clipboard

点击esc会关闭已经hide的dialog

Open wellyyang opened this issue 10 years ago • 2 comments

通常调用hide后是为了后续可以继续展示.

建议_esc方法在判定时应该增加对当前窗口是否打开的检查.

// 避免输入状态中 ESC 误操作关闭 if (!that.open || !isTop || rinput.test(nodeName) && target.type !== 'button') { return; }

wellyyang avatar Sep 25 '15 10:09 wellyyang

我是修改源代码直接删除了按esc取消弹出框的方法

itomcat666 avatar Oct 05 '15 02:10 itomcat666

add option below: cancel: function(e) { if(e && e.keyCode == 27) return false; }

keepsilentw avatar Apr 28 '16 09:04 keepsilentw