mirror of https://github.com/prometheus/prometheus
Remove search keymap from new expression editor (#9184)
Signed-off-by: Julius Volz <julius.volz@gmail.com>pull/9189/head^2
parent
44e2834960
commit
b7e9f2481b
|
@ -8,7 +8,7 @@ import { history, historyKeymap } from '@codemirror/history';
|
||||||
import { defaultKeymap, insertNewlineAndIndent } from '@codemirror/commands';
|
import { defaultKeymap, insertNewlineAndIndent } from '@codemirror/commands';
|
||||||
import { bracketMatching } from '@codemirror/matchbrackets';
|
import { bracketMatching } from '@codemirror/matchbrackets';
|
||||||
import { closeBrackets, closeBracketsKeymap } from '@codemirror/closebrackets';
|
import { closeBrackets, closeBracketsKeymap } from '@codemirror/closebrackets';
|
||||||
import { searchKeymap, highlightSelectionMatches } from '@codemirror/search';
|
import { highlightSelectionMatches } from '@codemirror/search';
|
||||||
import { commentKeymap } from '@codemirror/comment';
|
import { commentKeymap } from '@codemirror/comment';
|
||||||
import { lintKeymap } from '@codemirror/lint';
|
import { lintKeymap } from '@codemirror/lint';
|
||||||
import { PromQLExtension, CompleteStrategy } from 'codemirror-promql';
|
import { PromQLExtension, CompleteStrategy } from 'codemirror-promql';
|
||||||
|
@ -139,7 +139,6 @@ const CMExpressionInput: FC<CMExpressionInputProps> = ({
|
||||||
keymap.of([
|
keymap.of([
|
||||||
...closeBracketsKeymap,
|
...closeBracketsKeymap,
|
||||||
...defaultKeymap,
|
...defaultKeymap,
|
||||||
...searchKeymap,
|
|
||||||
...historyKeymap,
|
...historyKeymap,
|
||||||
...commentKeymap,
|
...commentKeymap,
|
||||||
...completionKeymap,
|
...completionKeymap,
|
||||||
|
|
Loading…
Reference in New Issue