質問する
194 次
1 に答える
0
You need to listen & respond to Enter key code only,
So replace
<p:inputText id="globalFilter" onkeyup="carsTable.filter()" style="width:150px" />
With
<p:inputText id="globalFilter" onkeypress="if (event.keyCode == 13) {carsTable.filter()}" style="width:150px" />
event.keyCode == 13
---> enter is pressed
于 2012-07-29T19:11:06.000 に答える