simen-keyboard-listener 1.1.23 → 1.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -946,10 +946,13 @@ declare function getFrontmostInfo(): IFrontmostInfo | null;
946
946
  */
947
947
  declare function getPageContext(): IPageContextInfo | null;
948
948
  /**
949
- * 智能获取选中文本
950
- * - macOS: 优先用 Accessibility API,失败则用模拟 Cmd+C
951
- * - Windows: 优先用 UI Automation,失败则用模拟 Ctrl+C
952
- * @returns 选中文本或 null
949
+ * Get selected text via simulate Cmd+C + clipboard.
950
+ *
951
+ * Note:
952
+ * - macOS only
953
+ * - requires Accessibility permission to synthesize key events
954
+ *
955
+ * @returns Selected text or null
953
956
  */
954
957
  declare function getSelectedTextSmart(): string | null;
955
958
  /**
package/dist/index.d.ts CHANGED
@@ -946,10 +946,13 @@ declare function getFrontmostInfo(): IFrontmostInfo | null;
946
946
  */
947
947
  declare function getPageContext(): IPageContextInfo | null;
948
948
  /**
949
- * 智能获取选中文本
950
- * - macOS: 优先用 Accessibility API,失败则用模拟 Cmd+C
951
- * - Windows: 优先用 UI Automation,失败则用模拟 Ctrl+C
952
- * @returns 选中文本或 null
949
+ * Get selected text via simulate Cmd+C + clipboard.
950
+ *
951
+ * Note:
952
+ * - macOS only
953
+ * - requires Accessibility permission to synthesize key events
954
+ *
955
+ * @returns Selected text or null
953
956
  */
954
957
  declare function getSelectedTextSmart(): string | null;
955
958
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simen-keyboard-listener",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "Native global keyboard listener for macOS and Windows",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -50,8 +50,8 @@
50
50
  "node-addon-api": "^8.0.0"
51
51
  },
52
52
  "optionalDependencies": {
53
- "@simen-keyboard-listener/darwin-arm64": "1.1.23",
54
- "@simen-keyboard-listener/win32-x64": "1.1.23"
53
+ "@simen-keyboard-listener/darwin-arm64": "1.1.24",
54
+ "@simen-keyboard-listener/win32-x64": "1.1.24"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/node": "^20.0.0",