diff --git a/querybook/webapp/components/QueryEditor/QueryEditor.tsx b/querybook/webapp/components/QueryEditor/QueryEditor.tsx index 9730d8a37..a5c8aabce 100644 --- a/querybook/webapp/components/QueryEditor/QueryEditor.tsx +++ b/querybook/webapp/components/QueryEditor/QueryEditor.tsx @@ -459,7 +459,9 @@ export const QueryEditor: React.FC< maxHeight={height === 'auto' ? '50vh' : null} extensions={extensions} basicSetup={basicSetup} - editable={!readOnly} + // editable is working on the editor view. set as true to make it still respond to keymaps, e.g. search + editable={true} + // readonly is working on the editor state. when true, the editor content will not change anyway. readOnly={readOnly} autoFocus={false} onChange={onChangeHandler}