Skip to content

Commit

Permalink
fix(frontend): clicking on plus will not activate line switch
Browse files Browse the repository at this point in the history
excludes the classNames which are not 'desktop app' or 'presenter'

fixes #401
  • Loading branch information
AkalUstat committed May 24, 2020
1 parent c651c7b commit 404e163
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/frontend/src/shared/NavigatorHotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ const NavigatorHotKeys = ( { active, children, mouseTargetRef } ) => {
}
}, [ lines, lineId ] )

const goNextLine = useCallback( () => {
const goNextLine = useCallback((e) => {
// exclude anything other than the main window
if( e.target.parentNode.className !== 'desktop app' && e.target.parentNode.className !== 'presenter' ) return
if ( !lines ) return

const currentLineIndex = findLineIndex( lines, lineId )
Expand Down

0 comments on commit 404e163

Please sign in to comment.