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 6283dce commit 88f1f70
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions potiboard5/templates/basic/paint_axnos.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
}
});
document.addEventListener('keyup', (e)=> {
// e.key を利用して特定のキーのアップイベントを検知する
if (e.key.toLowerCase() === 'alt') {
e.preventDefault(); // Alt キーのデフォルトの動作をキャンセル
}
});
document.addEventListener("DOMContentLoaded", () => {
var axp = new AXNOSPaint({
Expand Down
7 changes: 7 additions & 0 deletions potiboard5/templates/mono/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 88f1f70

Please sign in to comment.