Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

add ng-keyup and ng-keydown #1035

Closed
Closed
@carpasse

Description

@carpasse

Can you guys please add the ng-keydown and ng-keydown directives

I Think it would be extremely easy to add both directives to angular since you already have this generic mechanism to create 'event directives'

The only think to do is on line 12294 of angular-1.0.0rc10.js

    'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave'.split(' '),

add the two new events

    'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup'.split(' '),

I´ve tryied on my machine and it works perfectly.

Thanks for the effort on angular.

Carles.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions