精简模式添加快捷键Ctrl+0用于恢复默认

This commit is contained in:
buvta
2020-11-22 10:56:30 +08:00
parent fede7e4ef2
commit a9e4a34e4f
2 changed files with 10 additions and 0 deletions

View File

@@ -1149,6 +1149,11 @@ export default {
this.miniEvent()
return false
}
if (e === 'resetMini') {
const miniWindowBounds = { x: this.mainWindowBounds.x, y: this.mainWindowBounds.y, width: 550, height: 340 }
win.setBounds(miniWindowBounds)
return false
}
},
changeSetting () {
this.mtEvent()

View File

@@ -113,6 +113,11 @@ const localKey = [
name: 'mini',
desc: '进入或退出mini模式',
key: 'alt+m'
},
{
name: 'resetMini',
desc: '恢复mini窗口默认大小及位置',
key: 'ctrl+0'
}
]