Angular Core Dependency: ~1.3
Added by: Sam Deering
angular-keyboard is a user interface toolkit for adding declaratively keyboard navigation to your web apps.
Please see the docs for more information.
modshorcut transforms to
commandon OSX and to
controlon other platforms
There is a number of ways to use angular-keyboard, but the simplest is probably to use the declarative approach:
<a ng-click="goToPreferences()" keyboard-shortcut="control+,">Preferences</a>
If the user presses
control ,, the
goToPreferences function will be invoked.
You can add
and this will be transformed into a user visible screen that shows the currently accessible keyboard shortcuts.
Jakub Hampl - http://gampleman.eu
The MIT License (MIT)
Copyright (c) 2014 RightScale
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Module stats last updated: 2015-06-08 00:37:37