|
|
@ -77,6 +77,13 @@ export class ModalManage
|
|
|
|
this.m_ModalContainer.addEventListener('keyup', e => this.onKeyUp(e));
|
|
|
|
this.m_ModalContainer.addEventListener('keyup', e => this.onKeyUp(e));
|
|
|
|
this.m_ModalContainer.addEventListener('focus', e => this.onFocus(e), true);
|
|
|
|
this.m_ModalContainer.addEventListener('focus', e => this.onFocus(e), true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//因为这个UI接管了按键操作,所以必须hack它,TODO:以后寻找更好的方法更改这个
|
|
|
|
|
|
|
|
window.addEventListener("blur", e =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.IsAltDown = false;
|
|
|
|
|
|
|
|
this.IsCtrlDown = false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
xaop.begin(this.ed.MaskManage, this.ed.MaskManage.OnFocusEvent, (e: KeyboardEvent) =>
|
|
|
|
xaop.begin(this.ed.MaskManage, this.ed.MaskManage.OnFocusEvent, (e: KeyboardEvent) =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (this.IsModal)
|
|
|
|
if (this.IsModal)
|
|
|
|