Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Commit

Permalink
Merge pull request #190 from theaccordance/master
Browse files Browse the repository at this point in the history
Browser Platform Mock
  • Loading branch information
tlancina committed May 2, 2016
2 parents 0cc2783 + e5b8461 commit d6bbd41
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin.xml
Expand Up @@ -47,6 +47,14 @@
-->
</platform>

<!-- browser -->
<platform name="browser">
<js-module src="www/browser/keyboard.js" name="keyboard">
<runs/>
<clobbers target="cordova.plugins.Keyboard" />
</js-module>
</platform>

<!-- blackberry10 -->
<platform name="blackberry10">
<source-file src="src/blackberry10/index.js" target-dir='Keyboard' />
Expand Down
34 changes: 34 additions & 0 deletions www/browser/keyboard.js
@@ -0,0 +1,34 @@

var argscheck = require('cordova/argscheck'),
utils = require('cordova/utils'),
exec = require('cordova/exec');


var Keyboard = function() {
};

Keyboard.hideKeyboardAccessoryBar = function(hide) {
return null;
};

Keyboard.close = function() {
return null;
};

Keyboard.show = function() {
return null;
};

Keyboard.disableScroll = function(disable) {
return null;
};

/*
Keyboard.styleDark = function(dark) {
exec(null, null, "Keyboard", "styleDark", [dark]);
};
*/

Keyboard.isVisible = false;

module.exports = Keyboard;

0 comments on commit d6bbd41

Please sign in to comment.