问题:当光标在 inputText 中并且我按下“Enter”时,将弹出对话框这发生在 Chrome 中,但不是通过 IE:
  <h:form id="mainForm" prependId="false">   
        <h:inputText id="globalFilter" onkeypress="if(event.keyCode == 13){}"/>
        <p:commandButton id="Button1" 
                         oncomplete="widgetVar.show()"/>
        <p:dialog id="Dialog1" 
                  widgetVar="widgetVar"
                  appendToBody="true"
                  dynamic="true"/>
    </h:form>
我该如何预防?
谢谢