修复esc键冲突问题
parent
4542f9b2e3
commit
2884e67109
|
@ -14,8 +14,8 @@ import {
|
||||||
|
|
||||||
const handle_key_down = ({ event, type, key }) => {
|
const handle_key_down = ({ event, type, key }) => {
|
||||||
// console.log(key)
|
// console.log(key)
|
||||||
if (key != 'escape' || !event || event.repeat || type == 'up' || window.isEditingHotKey) return
|
if (key != 'escape' || !event || event.repeat || type == 'up' || window.isEditingHotKey || event.target.classList.contains('ignore-esc')) return
|
||||||
if (event.target.tagName != 'INPUT' || event.target.classList.contains('ignore-esc')) {
|
if (event.target.tagName != 'INPUT') {
|
||||||
if (isFullscreen.value) {
|
if (isFullscreen.value) {
|
||||||
event.lx_handled = true
|
event.lx_handled = true
|
||||||
rendererInvoke(NAMES.mainWindow.fullscreen, false).then(fullscreen => {
|
rendererInvoke(NAMES.mainWindow.fullscreen, false).then(fullscreen => {
|
||||||
|
|
Loading…
Reference in New Issue