Skip to content

Commit

Permalink
🐛 fix #9076
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Aug 31, 2023
1 parent b1a27f8 commit 008e5e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/src/menus/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,12 @@ const getActionMenu = (element: Element, next: boolean) => {
};

export const bindMenuKeydown = (event: KeyboardEvent) => {
if (window.siyuan.menus.menu.element.classList.contains("fn__none") || event.altKey || event.shiftKey || isCtrl(event)) {
if (window.siyuan.menus.menu.element.classList.contains("fn__none")
|| event.altKey || event.shiftKey || isCtrl(event)) {
return false;
}
const target = event.target as HTMLElement
if (window.siyuan.menus.menu.element.contains(target) && (target.tagName === "INPUT" || target.tagName === "TEXTAREA")) {
return false;
}
if (event.code === "ArrowDown" || event.code === "ArrowUp") {
Expand Down

0 comments on commit 008e5e6

Please sign in to comment.