From 7d1b32c674fedb607f1ce5b63be08b39467d97b9 Mon Sep 17 00:00:00 2001 From: Gihwan Oh Date: Fri, 21 Sep 2018 05:50:11 +0900 Subject: [PATCH 1/4] fix typo --- libuiohook/src/x11/input_hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuiohook/src/x11/input_hook.c b/libuiohook/src/x11/input_hook.c index 4898df63..519d32e1 100644 --- a/libuiohook/src/x11/input_hook.c +++ b/libuiohook/src/x11/input_hook.c @@ -1075,7 +1075,7 @@ static void init_grab() { } UIOHOOK_API void grab_keyboad(bool enable) { - grab_keyboad = enable; + grab_keyboard_event = enable; } static void enable_grab_mouse() { From 3d06e5763ef9cb932b0b83b56a180170c7ea75fc Mon Sep 17 00:00:00 2001 From: Gihwan Oh Date: Fri, 21 Sep 2018 06:16:39 +0900 Subject: [PATCH 2/4] Fix typo 2 --- libuiohook/src/x11/input_hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuiohook/src/x11/input_hook.c b/libuiohook/src/x11/input_hook.c index 519d32e1..6ff24d04 100644 --- a/libuiohook/src/x11/input_hook.c +++ b/libuiohook/src/x11/input_hook.c @@ -1074,7 +1074,7 @@ static void init_grab() { win = XDefaultRootWindow(disp); } -UIOHOOK_API void grab_keyboad(bool enable) { +UIOHOOK_API void grab_keyboard(bool enable) { grab_keyboard_event = enable; } From d9abd4b60eb4fcb9be9bfca6c4e9ff48ad3ba6eb Mon Sep 17 00:00:00 2001 From: Gihwan Oh Date: Fri, 21 Sep 2018 07:59:15 +0900 Subject: [PATCH 3/4] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7c47d32a..6a9cad7a 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Found a bug? Have an idea? Feel free to post an [issue](https://github.com/Wilix iohook provides prebuilt version for a bunch of OSes and runtime versions. ```bash -npm install iohook --save # or yarn add iohook +npm i git+https://github.com:wurikiji/iohook.git # or yarn add iohook ``` from git @@ -28,12 +28,11 @@ npm i git+https://github.com:wurikiji/iohook.git ``` ### Windows -- for Node.js usage just make sure that you have installed following components +- for Node.js usage just make sure that you have installed following components and it will be built by install script - [![](https://cmake.org/wp-content/uploads/2014/06/favicon.png) CMake](https://cmake.org) - [![](http://landinghub.visualstudio.com/favicon.ico) Visual C++ Build Tools](http://landinghub.visualstudio.com/visual-cpp-build-tools) - [CMake.js](https://www.npmjs.com/package/cmake-js) - and it will be built by install script -- for Electron go to installation dir (node_modules/iohook) and recompile it according to your Electron version. e.g. `cmake-js compile -r electron -v 2.0.0` +- for Electron go to installation dir (node_modules/iohook) and recompile it according to your Electron version. e.g. `cmake-js rebuild -r electron -v 2.0.0` ## Added feature From 5ae1439a8bb8ea3e443abe2c477b832836e3968b Mon Sep 17 00:00:00 2001 From: Gihwan Oh Date: Fri, 21 Sep 2018 07:59:59 +0900 Subject: [PATCH 4/4] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 351d092f..2f011b06 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,9 @@ "main": "index.js", "types": "index.d.ts", "scripts": { - "install": "node install.js", + "install": "node install.js || cmake-js build", "install-all": "node install.js --all", - "build": "cmake-js compile", + "build": "cmake-js build", "deploy": "node build.js", "test": "jest", "docs:dev": "vuepress dev docs",