Gallinator commited on
Commit
dd4447a
·
unverified ·
1 Parent(s): d166475

visualization: always get window focus in editor page

Browse files
Files changed (1) hide show
  1. app/static/js/visualization.js +2 -0
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")