Spaces:
Sleeping
Sleeping
Gallinator commited on
visualization: always get window focus in editor page
Browse files
app/static/js/visualization.js
CHANGED
|
@@ -127,6 +127,8 @@ class CurveEditor {
|
|
| 127 |
|
| 128 |
this.handler = { onupdate: () => { } }
|
| 129 |
|
|
|
|
|
|
|
| 130 |
this.div.ownerDocument.addEventListener("keydown", (event) => {
|
| 131 |
console.log(event)
|
| 132 |
if (event.key == "Control")
|
|
|
|
| 127 |
|
| 128 |
this.handler = { onupdate: () => { } }
|
| 129 |
|
| 130 |
+
window.focus()
|
| 131 |
+
|
| 132 |
this.div.ownerDocument.addEventListener("keydown", (event) => {
|
| 133 |
console.log(event)
|
| 134 |
if (event.key == "Control")
|