Thank you very very much for your help :)
2016-07-05 15:25 GMT+02:00 'Lucas Lacroix' via AngularJS <
[email protected]>:
> I don't think this is an Angular issue. KeyUp and KeyDown events are
> different from KeyPress events. KeyUp/Down give you key codes while
> KeyPress gives you character codes - sometimes these are the same,
> sometimes they are not. The way in which the different browser have
> implemented the events differs as well. Some libraries, like jQuery,
> normalize the different browser implementations - not sure the Angular does
> this.
>
> My suggestion would be to use the json pipe to look at the keyEvent object
> like:
> <string>Event:</strong>{{ keyEvent | json }}<br>
>
>
>
> On Tue, Jul 5, 2016 at 8:24 AM, Dawid Anonim <[email protected]> wrote:
>
>> Hello
>>
>> why ngKeyup, ngKeydown and ngKeypress have exactly the same documentation
>> but they don't work the same? example:
>>
>> <div>
>> <textarea ng-keydown="keyEvent = $event"></textarea>
>> </div>
>> <div>
>> <strong>Key code:</strong> {{ keyEvent.keyCode }} <br>
>> </div>
>>
>> if you put ng-keydown and ng-keyup it works if u put ng-keypress it
>> dosen't work
>> anyone know why?
>>
>> AngularJS v.1.5.7
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "AngularJS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Lucas Lacroix
> Computer Scientist
> System Technology Division, MEDITECH <http://ehr.meditech.com>
> 781-774-2293
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/Q2jjKBqF3Yc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.