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
shift-ctrl-65 is working correctly. But shift-" /> shift-ctrl-65 is working correctly. But shift-" /> shift-ctrl-65 is working correctly. But shift-"/>
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
Copyright © 2021 Jogjafile Inc.
So as it turned out you were missing the enclosing
{ ... }curly braces.The
ui-keydowndirective 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: