lyb-pixi-js 1.11.15 → 1.11.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ export class LibPixiDragLocate extends Container {
17
17
  /** 按下坐标 */
18
18
  this._downPos = { x: 0, y: 0 };
19
19
  window.addEventListener("keydown", (e) => {
20
- if (e.altKey && e.key.toLowerCase() === "q") {
20
+ if (e.ctrlKey && e.key.toLowerCase() === "q") {
21
21
  e.preventDefault();
22
22
  if (this._isLocalte)
23
23
  return;
@@ -18,7 +18,7 @@ export class LibPixiPuzzleBg extends Container {
18
18
  bg.position.set(x || 0, y || 0);
19
19
  //监听鼠标空格事件
20
20
  document.addEventListener("keydown", (e) => {
21
- if (e.altKey && e.code === "Space") {
21
+ if (e.ctrlKey && e.key.toLowerCase() === "a") {
22
22
  e.preventDefault();
23
23
  bg.visible = !bg.visible;
24
24
  }
package/lyb-pixi.js CHANGED
@@ -57785,7 +57785,7 @@ void main(void){
57785
57785
  bg.alpha = alpha || 0.25;
57786
57786
  bg.position.set(x2 || 0, y2 || 0);
57787
57787
  document.addEventListener("keydown", (e2) => {
57788
- if (e2.altKey && e2.code === "Space") {
57788
+ if (e2.ctrlKey && e2.key.toLowerCase() === "a") {
57789
57789
  e2.preventDefault();
57790
57790
  bg.visible = !bg.visible;
57791
57791
  } else if (e2.code === "ArrowUp") {
@@ -57882,7 +57882,7 @@ void main(void){
57882
57882
  this._allowMove = false;
57883
57883
  this._downPos = { x: 0, y: 0 };
57884
57884
  window.addEventListener("keydown", (e2) => {
57885
- if (e2.altKey && e2.key.toLowerCase() === "q") {
57885
+ if (e2.ctrlKey && e2.key.toLowerCase() === "q") {
57886
57886
  e2.preventDefault();
57887
57887
  if (this._isLocalte)
57888
57888
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.11.15",
3
+ "version": "1.11.17",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {