Skip to content

Commit

Permalink
Merge pull request #133 from SamWolfs/bug-hotkeys-skip-unpause
Browse files Browse the repository at this point in the history
Bug-101: pause() / unpause() skips Hotkeys
  • Loading branch information
Coffee-Tea authored May 1, 2023
2 parents e6f3604 + fd7cb69 commit 1d46b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/hotkeys.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class HotkeysService {
}
if (Array.isArray(hotkey)) {
const temp: Hotkey[] = [];
for (const key of hotkey) {
for (const key of hotkey.slice()) {
temp.push(this.pause(key) as Hotkey);
}
return temp;
Expand All @@ -156,7 +156,7 @@ export class HotkeysService {
}
if (Array.isArray(hotkey)) {
const temp: Hotkey[] = [];
for (const key of hotkey) {
for (const key of hotkey.slice()) {
temp.push(this.unpause(key) as Hotkey);
}
return temp;
Expand Down

0 comments on commit 1d46b1e

Please sign in to comment.