jspsych 8.0.1 → 8.0.2
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.
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.min.js +3 -3
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/modules/plugin-api/KeyboardListenerAPI.ts +1 -1
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ export class KeyboardListenerAPI {
|
|
|
48
48
|
private rootKeydownListener(e: KeyboardEvent) {
|
|
49
49
|
// Iterate over a static copy of the listeners set because listeners might add other listeners
|
|
50
50
|
// that we do not want to be included in the loop
|
|
51
|
-
for (const listener of
|
|
51
|
+
for (const listener of [...this.listeners]) {
|
|
52
52
|
listener(e);
|
|
53
53
|
}
|
|
54
54
|
this.heldKeys.add(this.toLowerCaseIfInsensitive(e.key));
|