优化代码

This commit is contained in:
mxd
2021-10-30 23:19:17 +08:00
parent 5207dc9c35
commit bc06e0799a

View File

@@ -150,7 +150,6 @@ export default {
updateKeys.forEach(item => {
let action = item[0]
const { handler, when } = CommandsRegistry.getCommand(action) ?? {}
console.log(action, when, handler)
if (handler) {
let index = KeybindingsRegistry._coreKeybindings.findIndex(it => it.command === action);
if(index > 0){