Link to home
Start Free TrialLog in
Avatar of Webspeeder
WebspeederFlag for United States of America

asked on

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?
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Webspeeder


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.