1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/vendor/assets/components/ngCapsLock
2017-08-31 17:11:46 +02:00
..
.bower.json In login modal, displays an alert if Caps lock key is pressed 2017-08-31 17:11:46 +02:00
bower.json In login modal, displays an alert if Caps lock key is pressed 2017-08-31 17:11:46 +02:00
LICENSE In login modal, displays an alert if Caps lock key is pressed 2017-08-31 17:11:46 +02:00
ng-caps-lock.js In login modal, displays an alert if Caps lock key is pressed 2017-08-31 17:11:46 +02:00
ng-caps-lock.min.js In login modal, displays an alert if Caps lock key is pressed 2017-08-31 17:11:46 +02:00
README.md In login modal, displays an alert if Caps lock key is pressed 2017-08-31 17:11:46 +02:00

ngCapsLock

ngCapsLock is a module for AngularJS to detect if caps-lock is on/off.

Getting Started

  • Download ngCapsLock or install it with Bower via bower install ng-caps-lock

  • Include the script tag on your page after the AngularJS script tags

     <script type='text/javascript' src='path/to/angular.min.js'></script>
     <script type='text/javascript' src='path/to/ng-caps-lock.min.js'></script>
    
  • Ensure that your application module specifies ngCapsLock as a dependency:

     angular.module('myApp', ['ngCapsLock']);
    
  • Use the property isCapsLockOn on a ng-show directive.

     <p class="caps-lock-alert" ng-show='isCapsLockOn'>Caps lock is on</p>
    

License

ngCapsLock is licensed under the MIT license. See the LICENSE file for more details.