mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Restore previous codemirror tab behavior (#8461)
* Restore previous tab behavior * Handle via ondemand logic * Combine imports
This commit is contained in:
parent
f44d867d3a
commit
2f7f677549
@ -131,7 +131,14 @@ export class HaCodeEditor extends UpdatingElement {
|
||||
loaded.lineNumbers(),
|
||||
loaded.keymap.of([
|
||||
...loaded.defaultKeymap,
|
||||
loaded.defaultTabBinding,
|
||||
{
|
||||
key: "Tab",
|
||||
run: loaded.indentMore,
|
||||
},
|
||||
{
|
||||
key: "Shift-Tab",
|
||||
run: loaded.indentLess,
|
||||
},
|
||||
saveKeyBinding,
|
||||
]),
|
||||
loaded.tagExtension(modeTag, this._mode),
|
||||
|
@ -7,7 +7,7 @@ import { yaml } from "@codemirror/legacy-modes/mode/yaml";
|
||||
export { keymap } from "@codemirror/view";
|
||||
export { CMEditorView as EditorView };
|
||||
export { EditorState, Prec, tagExtension } from "@codemirror/state";
|
||||
export { defaultKeymap, defaultTabBinding } from "@codemirror/commands";
|
||||
export { defaultKeymap, indentLess, indentMore } from "@codemirror/commands";
|
||||
export { lineNumbers } from "@codemirror/gutter";
|
||||
|
||||
export const langs = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user