node-libuiohook
Advanced tools
Comparing version
@@ -13,8 +13,2 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
Events["mousewheel"] = "mousewheel"; | ||
Events["foreground_changed"] = "foreground_changed"; | ||
Events["foreground_changed_location"] = "foreground_changed_location"; | ||
Events["window_move_size_start"] = "window_move_size_start"; | ||
Events["window_move_size_end"] = "window_move_size_end"; | ||
Events["window_minimized"] = "window_minimized"; | ||
Events["window_restored"] = "window_restored"; | ||
})(Events = exports.Events || (exports.Events = {})); | ||
@@ -21,0 +15,0 @@ var KeyModifiersMasks; |
@@ -20,8 +20,2 @@ /// <reference path="../index.d.ts" /> | ||
EVENTS.set(11, enums_1.Events.mousewheel); | ||
EVENTS.set(12, enums_1.Events.foreground_changed); | ||
EVENTS.set(13, enums_1.Events.foreground_changed_location); | ||
EVENTS.set(14, enums_1.Events.window_move_size_start); | ||
EVENTS.set(15, enums_1.Events.window_move_size_end); | ||
EVENTS.set(16, enums_1.Events.window_minimized); | ||
EVENTS.set(17, enums_1.Events.window_restored); | ||
} | ||
@@ -69,9 +63,3 @@ class IOHook extends events_1.EventEmitter { | ||
}; | ||
if (nativeEvent.type >= 12 && nativeEvent.type <= 17) { // 12-17 - foreground window events | ||
event.bounds = nativeEvent.bounds; | ||
event.applicationName = nativeEvent.applicationName; | ||
} | ||
else { | ||
event = Object.assign({}, event, nativeEvent.mouse || nativeEvent.keyboard || nativeEvent.wheel); | ||
} | ||
event = Object.assign({}, event, nativeEvent.mouse || nativeEvent.keyboard || nativeEvent.wheel); | ||
this._decorateEventWithModifiers(event); | ||
@@ -78,0 +66,0 @@ this.emit(event.type, event); |
{ | ||
"name": "node-libuiohook", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "NodeJS bindings for libuiohook", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,9 +12,2 @@ | ||
mousewheel = "mousewheel", | ||
foreground_changed = "foreground_changed", | ||
foreground_changed_location = "foreground_changed_location", | ||
window_move_size_start = "window_move_size_start", | ||
window_move_size_end = "window_move_size_end", | ||
window_minimized = "window_minimized", | ||
window_restored = "window_restored", | ||
} | ||
@@ -21,0 +14,0 @@ |
@@ -27,8 +27,2 @@ | ||
EVENTS.set(11, Events.mousewheel); | ||
EVENTS.set(12, Events.foreground_changed); | ||
EVENTS.set(13, Events.foreground_changed_location); | ||
EVENTS.set(14, Events.window_move_size_start); | ||
EVENTS.set(15, Events.window_move_size_end); | ||
EVENTS.set(16, Events.window_minimized); | ||
EVENTS.set(17, Events.window_restored); | ||
} | ||
@@ -93,11 +87,4 @@ | ||
if (nativeEvent.type >= 12 && nativeEvent.type <= 17 ) { // 12-17 - foreground window events | ||
event.bounds = nativeEvent.bounds; | ||
event.applicationName = nativeEvent.applicationName; | ||
} | ||
else { | ||
event = Object.assign({}, event, nativeEvent.mouse || nativeEvent.keyboard || nativeEvent.wheel); | ||
} | ||
event = Object.assign({}, event, nativeEvent.mouse || nativeEvent.keyboard || nativeEvent.wheel); | ||
this._decorateEventWithModifiers(event); | ||
@@ -104,0 +91,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
855083
-0.63%297
-10.81%