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
Copy file name to clipboardExpand all lines: fern/docs/pages/plug-sdk/web/search.mdx
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,42 +71,44 @@ Once the widget is installed on your website, every user who visits your website
71
71
72
72
After integrating the PLuG widget, you can personalize and contextualize customer engagement. Learn how to [identify your customers](./user-identity) and update their information.
73
73
74
-
## Bind hotkey to toggleSearchAgent
74
+
## Bind a hotkey to toggle search agent
75
75
76
-
You can bind the `toggleSearchAgent` method to a hotkey, such as `Cmd + K` (or `Ctrl + K` for Windows), to toggle the search agent quickly. Here's an example implementation:
76
+
You can bind the `toggleSearchAgent` method to a hotkey, such as `Cmd + K` (or `Ctrl + K` for Windows), to toggle the search agent. Here's an example implementation:
77
77
78
78
<Tabs>
79
79
<Tabtitle="Setup">
80
80
```html
81
81
<script>
82
82
// Bind Cmd+K (or Ctrl+K) to toggle the search agent
83
-
document.addEventListener('keydown', function (event) {
84
-
if ((event.metaKey||event.ctrlKey) &&event.key.toLowerCase() ==='k') {
83
+
document.addEventListener("keydown", function (event) {
84
+
if ((event.metaKey||event.ctrlKey) &&event.key.toLowerCase() ==="k") {
0 commit comments