This commit is contained in:
parent
53cb2c700a
commit
477df7aa7c
2 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue