Skip to content

Commit

Permalink
Firefoxのaltキーでメニュー出現対策。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 20, 2024
1 parent b5cc7dc commit 7d67f38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions petitnote/template/basic/paint_axnos.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
e.preventDefault();
}
});
document.addEventListener('keyup', (e)=> {
// e.key を利用して特定のキーのアップイベントを検知する
if (e.key.toLowerCase() === 'alt') {
e.preventDefault(); // Alt キーのデフォルトの動作をキャンセル
}
});

document.addEventListener("DOMContentLoaded", () => {

Expand Down

0 comments on commit 7d67f38

Please sign in to comment.