sturoid
sturoid

Reputation: 2721

Keycode for special character

I'm trying to watch for a user typing an @. The problem is that it registers two key codes, one for the shift and another for 2. Is there a way to know when the @ symbol is typed specifically? Thank you.

Upvotes: 0

Views: 135

Answers (1)

sturoid
sturoid

Reputation: 2721

I just needed to use ng-keypress instead of ng-keyup.

Upvotes: 1

Related Questions