angular-ui/angular-ui-OLDREPO

Keypress 'ctrl-enter' doesn't work?

Closed this issue · 5 comments

live demo: http://plnkr.co/edit/yRQXxFasz1KCYubDNYwS?p=preview

Key code:

<input ui-keypress="{'ctrl-enter': 'run($event)'}" placeholder="press ctrl+enter" />

and

  $scope.run = function( $event){
    alert('pressed');
    $event.preventDefault();
  }

When I press on the input with "ctrl+enter", nothing happens. My browser is chrome.

But it does work on firefox. Is it a chrome issue?

Works for me, Mac Chrome 25.0.1364.172

Same than #492 I guess

Can you please relocate this to @angular-ui/ui-utils

If this is still an issue, I recommend filing a new issue with the ui-utils repository.