keyCode and take action only when the key is Enter. There's an easier way: bind to Angular's keyup.enter pseudo-event. Then Angular calls the event handler only ...
確定! 回上一頁