AngularJS TAB and ENTER key capture

Hey all.

I have a table of data and on each row there is an input field. When a value is entered into the field and <enter> is pressed, ng-keyup is set to call a function.

I need the TAB key to "act like the <enter> key", is this possible? When TAB is pressed, the onblur is executed so if I put that into the keyup function, it moves it forward two lines due to the code manually moving to the next row on <enter>.

Can the TAB key be trapped and "converted" to <etner> key?
WebspeederAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
You must be executing some event handler on the ENTER to move to the next input - this is not default behaviour - so why not just check for event.keyCode == 8 whenever you check for ENTER?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
WebspeederAuthor Commented:
This is what I ended up using. It was a matter of checking for the tab key as well as other code that was firing and handling them as needed.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Angular

From novice to tech pro — start learning today.