From 54b14a005d906c54368089d20603e976e19b3384 Mon Sep 17 00:00:00 2001 From: anusreesubash <65728079+anusreesubash@users.noreply.github.com> Date: Sun, 30 Oct 2022 17:50:38 +0530 Subject: [PATCH] fix(#53): fix for response editor search issue (#55) --- packages/bruno-app/src/components/CodeEditor/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/CodeEditor/index.js b/packages/bruno-app/src/components/CodeEditor/index.js index 3f7c5721..c0d92817 100644 --- a/packages/bruno-app/src/components/CodeEditor/index.js +++ b/packages/bruno-app/src/components/CodeEditor/index.js @@ -38,7 +38,7 @@ export default class QueryEditor extends React.Component { showCursorWhenSelecting: true, foldGutter: true, gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter'], - readOnly: this.props.readOnly ? 'nocursor' : false, + readOnly: this.props.readOnly, theme: this.props.theme === 'dark' ? 'monokai' : 'default', extraKeys: { 'Cmd-Enter': () => { @@ -61,6 +61,8 @@ export default class QueryEditor extends React.Component { this.props.onSave(); } }, + 'Cmd-F': 'findPersistent', + 'Ctrl-F': 'findPersistent', Tab: function (cm) { cm.replaceSelection(' ', 'end'); }