shift-ctrl-65 is working correctly. But shift-" /> shift-ctrl-65 is working correctly. But shift-" /> shift-ctrl-65 is working correctly. But shift-"/>

angular ui-keydown is not working with shift+ctrl+alt+A keys

257 Views Asked by At

For example:

<div ui-keydown="'shift-ctrl-alt-65': 'ctrl.scrollFromShortcut($event,\'others\')'"></div>

shift-ctrl-65 is working correctly. But shift-ctrl-alt-65 is not working with ui-keydown. Please help

1

There are 1 best solutions below

0
Szabolcs Dézsi On

So as it turned out you were missing the enclosing { ... } curly braces.

The ui-keydown directive expects an object literal where the property name is the key combination and the value is an expression that will be evaluated against the scope.

So the solution is:

<div ui-keydown="{'shift-ctrl-alt-65': 'ctrl.scrollFromShortcut($event,\'others\')'}"></div>