Skip to content

Commit

Permalink
chickenpaint更新。以前から存在していたaltキー押下直後にショートカットキーが効かなくなる問題を修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 28, 2023
1 parent 31e2c12 commit b11f99b
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 34 deletions.
5 changes: 5 additions & 0 deletions potiboard5/chickenpaint/js/chickenpaint.js
Original file line number Diff line number Diff line change
Expand Up @@ -20666,6 +20666,11 @@ function CPCanvas(controller) {
modeStack.keyDown(e);
}
function handleKeyUp(e) {
//altキーを押下した直後にショートカットキーが動作しなくなる問題を修正
if (e.key.toLowerCase() === "alt") {
//altキーが離された時のDefaultの動作をキャンセル
e.preventDefault();
}
modeStack.keyUp(e);
}

Expand Down
4 changes: 2 additions & 2 deletions potiboard5/chickenpaint/js/chickenpaint.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit b11f99b

Please sign in to comment.