Skip to content

Commit b822318

Browse files
committed
Document recommended Ctrl/Cmd interoperability for FindAndReplace and GoToLine
1 parent 92da817 commit b822318

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/plugins/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ Right now, you can only add one plugin of each type (e.g. one SelectTokenCallbac
146146
let findAndReplacePlugin = new codeInput.plugins.FindAndReplace(
147147
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)`.
148148
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)`.
149+
{}, // Keep this as an empty object for the English UI, or add translations as in https://code-input-js.org/i18n/
150+
false // Should Ctrl key be forced for keyboard shortcuts; setting this to false makes the keyboard shortcut follow the operating system (i.e. Cmd on Apple).
149151
);
150152
// Programatically opening the dialogs, to integrate with your user interface
151153
function find() {
@@ -196,6 +198,8 @@ Hickory dickory dock.</code-input>
196198
<script>
197199
let goToLinePlugin = new codeInput.plugins.GoToLine(
198200
true, // Should Ctrl+G be overriden for go-to-line functionality? Either way, you can trigger it yourself using (instance of this plugin)`.showPrompt(code-input element)`.
201+
{}, // Keep this as an empty object for the English UI, or add translations as in https://code-input-js.org/i18n/
202+
false // Should Ctrl key be forced for keyboard shortcuts; setting this to false makes the keyboard shortcut follow the operating system (i.e. Cmd on Apple).
199203
);
200204
// Programatically opening the dialogs, to integrate with your user interface
201205
function goToLine() {

0 commit comments

Comments
 (0)