Skip to content

Commit 73e8744

Browse files
🔄 Sync from private repository - 2026-02-09 08:55:40
1 parent dca2358 commit 73e8744

File tree

7 files changed

+613
-468
lines changed

7 files changed

+613
-468
lines changed

API.en.md

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -235,84 +235,6 @@ Check if the clipboard contains text
235235

236236
---
237237

238-
### `clipboard.insertText`
239-
240-
**Signature:** `insertText(text)`
241-
242-
Insert text at cursor position in the currently focused input field (keyboard must be active)
243-
244-
**Parameters:**
245-
246-
| Name | Type | Description | Optional |
247-
|------|------|-------------|----------|
248-
| `text` | `string` | The text to insert | No |
249-
250-
**Returns:** `boolean`
251-
252-
*Whether the insertion was successful (returns false if no input field is focused)*
253-
254-
---
255-
256-
### `clipboard.deleteBackward`
257-
258-
**Signature:** `deleteBackward(count)`
259-
260-
Delete characters before the cursor in the focused input field
261-
262-
**Parameters:**
263-
264-
| Name | Type | Description | Optional |
265-
|------|------|-------------|----------|
266-
| `count` | `number` | Number of characters to delete, defaults to 1 | No |
267-
268-
**Returns:** `boolean`
269-
270-
*Whether the deletion was successful*
271-
272-
---
273-
274-
### `clipboard.getInputText`
275-
276-
**Signature:** `getInputText()`
277-
278-
Get the full text content of the currently focused input field
279-
280-
**Returns:** `string \| null`
281-
282-
*The input field text content, or null if no input is focused*
283-
284-
---
285-
286-
### `clipboard.setInputText`
287-
288-
**Signature:** `setInputText(text)`
289-
290-
Replace all text in the currently focused input field (select all then replace)
291-
292-
**Parameters:**
293-
294-
| Name | Type | Description | Optional |
295-
|------|------|-------------|----------|
296-
| `text` | `string` | The replacement text | No |
297-
298-
**Returns:** `boolean`
299-
300-
*Whether the replacement was successful*
301-
302-
---
303-
304-
### `clipboard.hasInputFocus`
305-
306-
**Signature:** `hasInputFocus()`
307-
308-
Check if any input field is currently focused (whether the keyboard is active)
309-
310-
**Returns:** `boolean`
311-
312-
*Whether an input field is focused*
313-
314-
---
315-
316238
## storage
317239

318240
![Full Support](https://img.shields.io/badge/Trigger-Full-brightgreen)

API.md

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -234,84 +234,6 @@ The following icons indicate API compatibility when running in background trigge
234234

235235
---
236236

237-
### `clipboard.insertText`
238-
239-
**Signature:** `insertText(text)`
240-
241-
向当前聚焦的输入框光标位置插入文本(需键盘已弹出)
242-
243-
**Parameters:**
244-
245-
| Name | Type | Description | Optional |
246-
|------|------|-------------|----------|
247-
| `text` | `string` | 要插入的文本内容 | No |
248-
249-
**Returns:** `boolean`
250-
251-
*是否成功插入(无聚焦输入框时返回 false)*
252-
253-
---
254-
255-
### `clipboard.deleteBackward`
256-
257-
**Signature:** `deleteBackward(count)`
258-
259-
删除聚焦输入框中光标前的字符
260-
261-
**Parameters:**
262-
263-
| Name | Type | Description | Optional |
264-
|------|------|-------------|----------|
265-
| `count` | `number` | 要删除的字符数量,默认 1 | No |
266-
267-
**Returns:** `boolean`
268-
269-
*是否成功删除*
270-
271-
---
272-
273-
### `clipboard.getInputText`
274-
275-
**Signature:** `getInputText()`
276-
277-
获取当前聚焦输入框的全部文本内容
278-
279-
**Returns:** `string \| null`
280-
281-
*输入框文本内容,无聚焦输入框时返回 null*
282-
283-
---
284-
285-
### `clipboard.setInputText`
286-
287-
**Signature:** `setInputText(text)`
288-
289-
替换当前聚焦输入框的全部文本(全选后替换)
290-
291-
**Parameters:**
292-
293-
| Name | Type | Description | Optional |
294-
|------|------|-------------|----------|
295-
| `text` | `string` | 替换后的文本内容 | No |
296-
297-
**Returns:** `boolean`
298-
299-
*是否成功替换*
300-
301-
---
302-
303-
### `clipboard.hasInputFocus`
304-
305-
**Signature:** `hasInputFocus()`
306-
307-
检查当前是否有输入框处于聚焦状态(键盘是否已弹出)
308-
309-
**Returns:** `boolean`
310-
311-
*是否有输入框聚焦*
312-
313-
---
314-
315237
## storage
316238

317239
![Full Support](https://img.shields.io/badge/Trigger-Full-brightgreen)

TrollScript-Private

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 4e329a0fff7bf61eedafca1aad98891e446617c1
1+
Subproject commit 117aa7c9539816a1d3a7472a68364c625422fdfc

npm/index.d.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -89,39 +89,6 @@ interface Clipboard {
8989
*/
9090
hasText(): boolean;
9191

92-
/**
93-
* 向当前聚焦的输入框光标位置插入文本(需键盘已弹出)
94-
* @param text 要插入的文本内容
95-
* @returns 是否成功插入(无聚焦输入框时返回 false)
96-
*/
97-
insertText(text: string): boolean;
98-
99-
/**
100-
* 删除聚焦输入框中光标前的字符
101-
* @param count 要删除的字符数量,默认 1
102-
* @returns 是否成功删除
103-
*/
104-
deleteBackward(count?: number): boolean;
105-
106-
/**
107-
* 获取当前聚焦输入框的全部文本内容
108-
* @returns 输入框文本内容,无聚焦输入框时返回 null
109-
*/
110-
getInputText(): any;
111-
112-
/**
113-
* 替换当前聚焦输入框的全部文本(全选后替换)
114-
* @param text 替换后的文本内容
115-
* @returns 是否成功替换
116-
*/
117-
setInputText(text: string): boolean;
118-
119-
/**
120-
* 检查当前是否有输入框处于聚焦状态(键盘是否已弹出)
121-
* @returns 是否有输入框聚焦
122-
*/
123-
hasInputFocus(): boolean;
124-
12592
}
12693

12794
declare const clipboard: Clipboard;

0 commit comments

Comments
 (0)