File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
bigbluebutton-html5/imports/ui/components/whiteboard Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -616,7 +616,9 @@ const Whiteboard = React.memo((props) => {
616616 return ;
617617 }
618618
619- if ( key === ' ' && tlEditorRef . current ?. getCurrentToolId ( ) !== 'hand' && isPresenterRef . current ) {
619+ if ( isPresenterRef . current && event . keyCode === KEY_CODES . SPACE && tlEditorRef . current ?. getCurrentToolId ( ) !== 'hand' ) {
620+ event . preventDefault ( ) ;
621+ event . stopPropagation ( ) ;
620622 previousTool . current = tlEditorRef . current ?. getCurrentToolId ( ) ;
621623 tlEditorRef . current ?. setCurrentTool ( 'hand' ) ;
622624 return ;
@@ -1830,7 +1832,9 @@ const Whiteboard = React.memo((props) => {
18301832 } ;
18311833
18321834 const handleKeyUp = ( event ) => {
1833- if ( event . key === ' ' ) {
1835+ if ( event . keyCode === KEY_CODES . SPACE ) {
1836+ event . preventDefault ( ) ;
1837+ event . stopPropagation ( ) ;
18341838 if ( previousTool . current ) {
18351839 tlEditorRef . current ?. setCurrentTool ( previousTool . current ) ;
18361840 previousTool . current = null ;
You can’t perform that action at this time.
0 commit comments