修复esc键冲突问题

pull/930/merge
lyswhut 2022-06-12 18:01:26 +08:00
parent 4542f9b2e3
commit 2884e67109
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ import {
const handle_key_down = ({ event, type, key }) => {
// console.log(key)
if (key != 'escape' || !event || event.repeat || type == 'up' || window.isEditingHotKey) return
if (event.target.tagName != 'INPUT' || event.target.classList.contains('ignore-esc')) {
if (key != 'escape' || !event || event.repeat || type == 'up' || window.isEditingHotKey || event.target.classList.contains('ignore-esc')) return
if (event.target.tagName != 'INPUT') {
if (isFullscreen.value) {
event.lx_handled = true
rendererInvoke(NAMES.mainWindow.fullscreen, false).then(fullscreen => {