Skip to content

Commit

Permalink
altキー押下でFirefoxのメニューが開閉するので、altキーのキーアップのDefaultの動作をキャンセル。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 20, 2024
1 parent b77e35f commit 359d888
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions potiboard5/templates/mono_en/paint_axnos.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
}
});
document.addEventListener('keyup', (e)=> {
// e.key を利用して特定のキーのアップイベントを検知する
if (e.key.toLowerCase() === 'alt') {
e.preventDefault(); // Alt キーのデフォルトの動作をキャンセル
}
});
document.addEventListener("DOMContentLoaded", () => {
var axp = new AXNOSPaint({
Expand Down

0 comments on commit 359d888

Please sign in to comment.