the-darc / angular-virtual-keyboard

An AngularJs Virtual Keyboard Interface based on GreyWyvern VKI
http://the-darc.github.io/angular-virtual-keyboard
MIT License
72 stars 41 forks source link

Added option to disable the keyboard in code #20

Open etraub opened 9 years ago

etraub commented 9 years ago

I had an application* for which I needed to disable or enable the keyboard in code. This change allows the developer to turn off the angular-virtual-keyboard by setting a constant named isEnabled to false.

angular.module('angular-virtual-keyboard').constant('isEnabled',false);

The keyboard is still enabled by default if the constant is not present.