File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Sources/Rendering/Core/RenderWindowInteractor Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -232,15 +232,9 @@ function vtkRenderWindowInteractor(publicAPI, model) {
232
232
container . addEventListener ( 'mouseleave' , publicAPI . handleMouseLeave ) ;
233
233
container . addEventListener ( 'mousemove' , publicAPI . handleMouseMove ) ;
234
234
container . addEventListener ( 'mousedown' , publicAPI . handleMouseDown ) ;
235
- document
236
- . querySelector ( 'body' )
237
- . addEventListener ( 'keypress' , publicAPI . handleKeyPress ) ;
238
- document
239
- . querySelector ( 'body' )
240
- . addEventListener ( 'keydown' , publicAPI . handleKeyDown ) ;
241
- document
242
- . querySelector ( 'body' )
243
- . addEventListener ( 'keyup' , publicAPI . handleKeyUp ) ;
235
+ document . addEventListener ( 'keypress' , publicAPI . handleKeyPress ) ;
236
+ document . addEventListener ( 'keydown' , publicAPI . handleKeyDown ) ;
237
+ document . addEventListener ( 'keyup' , publicAPI . handleKeyUp ) ;
244
238
245
239
document . addEventListener (
246
240
'pointerlockchange' ,
You can’t perform that action at this time.
0 commit comments