mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-15 00:21:00 +08:00
This commit is contained in:
parent
53cb2c700a
commit
477df7aa7c
@ -52,6 +52,10 @@ export const initBlockPopover = (app: App) => {
|
|||||||
if (!getTarget(event, aElement)) {
|
if (!getTarget(event, aElement)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// https://github.com/siyuan-note/siyuan/issues/9007
|
||||||
|
if (event.relatedTarget && !document.contains(event.relatedTarget as Node)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (window.siyuan.ctrlIsPressed) {
|
if (window.siyuan.ctrlIsPressed) {
|
||||||
clearTimeout(timeoutHide);
|
clearTimeout(timeoutHide);
|
||||||
showPopover(app);
|
showPopover(app);
|
||||||
|
@ -445,7 +445,8 @@ export const globalShortcut = (app: App) => {
|
|||||||
if (!event.altKey && !event.shiftKey && isCtrl(event)) {
|
if (!event.altKey && !event.shiftKey && isCtrl(event)) {
|
||||||
if (event.key === "Meta" || event.key === "Control" || event.ctrlKey || event.metaKey) {
|
if (event.key === "Meta" || event.key === "Control" || event.ctrlKey || event.metaKey) {
|
||||||
window.siyuan.ctrlIsPressed = true;
|
window.siyuan.ctrlIsPressed = true;
|
||||||
if (window.siyuan.config.editor.floatWindowMode === 1 && !event.repeat) {
|
if ((event.key === "Meta" || event.key === "Control") &&
|
||||||
|
window.siyuan.config.editor.floatWindowMode === 1 && !event.repeat) {
|
||||||
showPopover(app);
|
showPopover(app);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user