Skip to content

Commit

Permalink
🐛 #12967
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 29, 2024
1 parent 7e37563 commit d60d3ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/boot/globalEvent/commonHotkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ export const filterHotkey = (event: KeyboardEvent, app: App) => {
return true;
}
const target = event.target as HTMLElement;
if (isNotCtrl(event) && !event.shiftKey && !event.altKey &&
// 点击最近的文档列表会 dispatch keydown 的 Enter https://github.com/siyuan-note/siyuan/issues/12967
if (event.isTrusted && isNotCtrl(event) && !event.shiftKey && !event.altKey &&
!["INPUT", "TEXTAREA"].includes(target.tagName) &&
["0", "1", "2", "3", "4", "j", "k", "l", ";", "s", " ", "p", "enter", "a", "s", "d", "f", "q", "x"].includes(event.key.toLowerCase())) {
let cardElement: Element;
Expand Down

0 comments on commit d60d3ea

Please sign in to comment.