wasm-idle 0.0.19 → 0.0.20

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.
@@ -104,6 +104,7 @@ onMount(() => {
104
104
  return;
105
105
  const ev = e.domEvent;
106
106
  const printable = !ev.altKey && !ev.ctrlKey && !ev.metaKey;
107
+ dispatch("key", ev);
107
108
  if (ev.key === "Enter") {
108
109
  term.write("\r\n");
109
110
  sandbox.write(input + "\n");
@@ -14,6 +14,7 @@ declare const __propDef: {
14
14
  };
15
15
  events: {
16
16
  finish: CustomEvent<any>;
17
+ key: CustomEvent<any>;
17
18
  load: CustomEvent<any>;
18
19
  } & {
19
20
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wasm-idle",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "A simple web app to run C++/Python code in the browser",
5
5
  "license": "MIT",
6
6
  "type": "module",