Skip to content

Commit

Permalink
v6.16.2 Altキー押下直後にTegaki.jsのショートカットキーが効かなくなる問題を修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 29, 2023
1 parent 3170804 commit c452b09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions potiboard5/potiboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

// POTI-board EVO
// バージョン :
const POTI_VER = 'v6.16.1';
const POTI_LOT = 'lot.20231128';
const POTI_VER = 'v6.16.2';
const POTI_LOT = 'lot.20231129';

/*
(C) 2018-2023 POTI改 POTI-board redevelopment team
Expand Down
6 changes: 6 additions & 0 deletions potiboard5/tegaki/tegaki.js
Original file line number Diff line number Diff line change
Expand Up @@ -2314,6 +2314,12 @@ var TegakiKeybinds = {
e.stopPropagation();
fn[0][fn[1]]();
}
document.addEventListener('keyup', function(e) {
// e.key を利用して特定のキーのアップイベントを検知する
if (e.key.toLowerCase() === 'alt') {
e.preventDefault(); // Alt キーのデフォルトの動作をキャンセル
}
});
},
};
var TegakiLayers = {
Expand Down

0 comments on commit c452b09

Please sign in to comment.