diff --git a/src/components/Header.vue b/src/components/Header.vue index 0d5f170..bb6c620 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -355,12 +355,7 @@ export default { key: 'noteListVisible', value: !this.noteListVisible }) - }, - lockModeHandler: function () { - this.toggleChanged({ - key: 'enablePreviewEditor', - value: !this.enablePreviewEditor - }) + this.$refs.sideDrawer.hide() }, clearInputHandler: function () { this.searchText = '' @@ -379,7 +374,6 @@ export default { this.$refs.loginDialog.toggle() } bus.$on(events.VIEW_SHORTCUT_CALL.switchView, this.switchViewHandler) - bus.$on(events.VIEW_SHORTCUT_CALL.lockMode, this.lockModeHandler) }, watch: { isLogin: function (currentData) { diff --git a/src/i18n/en-us/other.js b/src/i18n/en-us/other.js index cce81de..a6be9c4 100644 --- a/src/i18n/en-us/other.js +++ b/src/i18n/en-us/other.js @@ -7,5 +7,7 @@ export default { prepareExportData: 'Preparing Export-Data', exportNoteSuccessfully: 'Export Note Successfully', sourceMode: 'Source Mode', - previewMode: 'Preview Mode' + previewMode: 'Preview Mode', + lockModeOn: 'Keyboard Locked', + lockModeOff: 'Keyboard Unlocked' } diff --git a/src/i18n/zh-cn/other.js b/src/i18n/zh-cn/other.js index d3e9658..7be53dc 100644 --- a/src/i18n/zh-cn/other.js +++ b/src/i18n/zh-cn/other.js @@ -7,5 +7,7 @@ export default { prepareExportData: '正在准备导出数据', exportNoteSuccessfully: '笔记导出成功', sourceMode: '源代码模式', - previewMode: '预览模式' + previewMode: '预览模式', + lockModeOn: '键盘输入已被锁定', + lockModeOff: '键盘锁定已被解除' } diff --git a/src/pages/Index.vue b/src/pages/Index.vue index 5c6af23..0747e81 100644 --- a/src/pages/Index.vue +++ b/src/pages/Index.vue @@ -19,17 +19,6 @@