Skip to content

Commit b2eb248

Browse files
committed
Clarify find and replace uses Ctrl/Cmd+F but only Ctrl+H in plugin demo
1 parent 2794ffa commit b2eb248

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/plugins/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ Right now, you can only add one plugin of each type (e.g. one SelectTokenCallbac
144144
145145
<script>
146146
let findAndReplacePlugin = new codeInput.plugins.FindAndReplace(
147-
true, // Should Ctrl/Cmd+F be overriden for find-and-replace find functionality? Either way, you can also trigger it yourself using (instance of this plugin)`.showPrompt(code-input element, false)`.
148-
true, // Should Ctrl/Cmd+H be overriden for find-and-replace replace functionality? Either way, you can also trigger it yourself using (instance of this plugin)`.showPrompt(code-input element, true)`.
147+
true, // Should Ctrl+F be overriden for find-and-replace find functionality? Either way, you can also trigger it yourself using (instance of this plugin)`.showPrompt(code-input element, false)`.
148+
true, // Should Ctrl+H be overriden for find-and-replace replace functionality? Either way, you can also trigger it yourself using (instance of this plugin)`.showPrompt(code-input element, true)`.
149149
{}, // Keep this as an empty object for the English UI, or add translations as in https://code-input-js.org/i18n/
150150
false // Setting this to false makes the keyboard shortcuts follow the operating system while avoiding clashes (right now: Cmd+F/Ctrl+H on Apple, Ctrl+F/Ctrl+H otherwise.) and is recommended; true forces Ctrl+F/Ctrl+H and is default for backwards compatibility.
151151
);
@@ -161,7 +161,7 @@ Right now, you can only add one plugin of each type (e.g. one SelectTokenCallbac
161161
findAndReplacePlugin
162162
]));
163163
</script>
164-
<p>When focused in the editor: Try Ctrl+F, or click <button onclick="find();">this</button> to find. Try Ctrl+H, or click <button onclick="replace();">this</button> to replace.</p>
164+
<p>When focused in the editor: Try Ctrl/Cmd+F, or click <button onclick="find();">this</button> to find. Try Ctrl+H, or click <button onclick="replace();">this</button> to replace.</p>
165165
<code-input language="markdown"># Hickory dickory dock
166166
Hickory dickory dock.
167167
The mouse ran up the clock.

0 commit comments

Comments
 (0)