Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-windows-osk

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-windows-osk - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

30

export.js

@@ -1,1 +0,29 @@

module.exports = require('./build/Release/addon');
const screen = require('electron').screen;
const native = require('./build/Release/addon');
function OSK() {
}
OSK.prototype.show = function(x,y,width,height) {
if (native.OSKClose()) {
if (native.OSKSetPosition(x,y,width,height)) {
return native.OSKShow();
}
}
return false;
};
OSK.prototype.close = function() {
return native.OSKClose();
};
OSK.prototype.getSystem = function() {
return [ native.GetSystemTopBarThickness(), native.GetSystemBorderThickness(), native.GetSystemMenuHeight()];
};
const osk = new OSK();
module.exports = osk;

2

main.js

@@ -51,3 +51,3 @@ // note that the compiled addon is placed under following path

console.log(OSKClose());
console.log(OSKSetPosition(0,0,500,500));
console.log(OSKSetPosition(0,0,800,300));
console.log(OSKShow());

@@ -54,0 +54,0 @@

{
"name": "electron-windows-osk",
"version": "1.0.11",
"version": "1.0.12",
"description": "",

@@ -5,0 +5,0 @@ "main": "export.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc