You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When set to `true`, this option enables capturing the search keyboard shortcut. When enabled, pressing Command+F (Mac) or Ctrl+F (Windows/Linux) will trigger the `onSearchShortcut` event instead of the browser's default search behavior. This allows implementing custom search functionality within the chat interface.
This event will be fired when the user presses Command+F (Mac) or Ctrl+F (Windows/Linux). It passes the `tabId` of the current tab and the `eventId` for tracking user intent. This allows the consumer to implement custom search functionality when the standard browser search shortcut is pressed.
1303
+
1304
+
```typescript
1305
+
...
1306
+
onSearchShortcut?: (
1307
+
tabId: string,
1308
+
eventId?:string) =>void;
1309
+
...
1310
+
```
1311
+
1312
+
**Example:**
1313
+
```typescript
1314
+
onSearchShortcut: (tabId, eventId) => {
1315
+
console.log(`Search shortcut triggered in tab: ${tabId}`);
1316
+
// Implement custom search functionality, such as opening a history sheet
0 commit comments