diff --git a/src/equicordplugins/betterCommands/index.ts b/src/equicordplugins/betterCommands/index.ts index 84f1e6d98..63bf1eb45 100644 --- a/src/equicordplugins/betterCommands/index.ts +++ b/src/equicordplugins/betterCommands/index.ts @@ -17,7 +17,7 @@ const settings = definePluginSettings({ default: true, }, allowNewlinesInCommands: { - description: "Allow newlines in command inputs (Shift + Enter)", + description: "Allow newlines in command inputs (CTRL + Shift + Enter)", type: OptionType.BOOLEAN, default: true, } @@ -54,7 +54,7 @@ export default definePlugin({ match: /case (\i\.\i)\.TAB:if\(null!=(\i).selection&&\i\((\i)(?=.{0,300}(\i\.\i\.insertText))/, replace: (orig, keys, editor, event, insertText) => { return `case ${keys}.ENTER: - if(${event}.shiftKey){ + if(${event}.shiftKey && ${event}.ctrlKey){ ${event}.preventDefault(); ${event}.stopPropagation(); ${insertText}(${editor},'\\n');