|
@@ -1,7 +1,6 @@
|
|
|
import { Prec } from '@codemirror/state'
|
|
import { Prec } from '@codemirror/state'
|
|
|
import { keymap } from '@codemirror/view'
|
|
import { keymap } from '@codemirror/view'
|
|
|
import { wrapRanges } from '../../commands/ranges'
|
|
import { wrapRanges } from '../../commands/ranges'
|
|
|
-import { indentLess, indentMore } from '@codemirror/commands'
|
|
|
|
|
|
|
|
|
|
export const shortcuts = () => {
|
|
export const shortcuts = () => {
|
|
|
return Prec.high(
|
|
return Prec.high(
|
|
@@ -18,16 +17,6 @@ export const shortcuts = () => {
|
|
|
preventDefault: true,
|
|
preventDefault: true,
|
|
|
run: wrapRanges('_', '_'),
|
|
run: wrapRanges('_', '_'),
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- key: 'Tab',
|
|
|
|
|
- preventDefault: true,
|
|
|
|
|
- run: indentMore,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- key: 'Shift-Tab',
|
|
|
|
|
- preventDefault: true,
|
|
|
|
|
- run: indentLess,
|
|
|
|
|
- },
|
|
|
|
|
])
|
|
])
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|