ftmocks-utils 1.4.2 → 1.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ftmocks-utils",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Util functions for FtMocks",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -175,8 +175,9 @@ const runEventsInPresentationMode = async (page, ftmocksConifg, testName) => {
175
175
  document.body.focus();
176
176
  });
177
177
  window.addEventListener("keydown", (e) => {
178
- if (e.key === "ArrowRight") {
179
- console.log(" ArrowRight key pressed!");
178
+ console.log("➡ keydown event triggered!", e);
179
+ if (e.key === "Shift" && !e.repeat) {
180
+ e.preventDefault();
180
181
  window.nextEvent();
181
182
  }
182
183
  });