Prevent both blur and keyup events to fire after pressing enter in a textbox

后端 未结 8 501
粉色の甜心
粉色の甜心 2021-01-11 10:13

After pressing enter I would like that only the keyup event be fired but blur is fired first. How to cancel blur when

8条回答
  •  太阳男子
    2021-01-11 11:03

    The below code worked for me, in primefaces 5.2.5

    Blur event was not triggered even though Enter key was pressed.

提交回复
热议问题