Skip to content

Commit

Permalink
Update ダイアログ内でホットキーが効かないように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tsym77yoshi committed May 16, 2024
1 parent ccda7f6 commit f9fc14c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/hotkeyPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,11 @@ export class HotkeyManager {

keyInput(e: KeyboardEvent): void {
const element = e.target;
// メニュー項目ではショートカットキーを無効化
// メニュー項目・ダイアログではショートカットキーを無効化
if (
element instanceof HTMLElement &&
element.getAttribute("role") == "menu"
(element.getAttribute("role") == "menu" ||
element.classList.contains("q-dialog__inner"))
) {
return;
}
Expand Down

0 comments on commit f9fc14c

Please sign in to comment.