fix splitlistitem

This commit is contained in:
Philipp Kühn
2020-09-22 20:23:54 +02:00
parent 7f9bb9f1d1
commit 2856900c6a
3 changed files with 2 additions and 61 deletions

View File

@@ -94,18 +94,7 @@ export default class ExtensionManager {
return collect(this.extensions)
.map(extension => extension.config.keys)
.filter(keys => keys)
.map(keys => {
const values = Object.entries(keys).map(([key, action]) => {
return [key, () => {
this.editor.lastCommandValue = undefined
// @ts-ignore
const bla = action().lastCommandValue
// console.log({bla})
return bla
}]
})
return keymap(Object.fromEntries(values))
})
.map(keys => keymap(keys))
.toArray()
}