mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-14 16:11: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)) {
|
||||
return;
|
||||
}
|
||||
// https://github.com/siyuan-note/siyuan/issues/9007
|
||||
if (event.relatedTarget && !document.contains(event.relatedTarget as Node)) {
|
||||
return;
|
||||
}
|
||||
if (window.siyuan.ctrlIsPressed) {
|
||||
clearTimeout(timeoutHide);
|
||||
showPopover(app);
|
||||
|
@ -445,7 +445,8 @@ export const globalShortcut = (app: App) => {
|
||||
if (!event.altKey && !event.shiftKey && isCtrl(event)) {
|
||||
if (event.key === "Meta" || event.key === "Control" || event.ctrlKey || event.metaKey) {
|
||||
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);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user