Skip to content

Commit

Permalink
Merge branch 'main' into GUI_deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfougeron committed Jul 13, 2023
2 parents 1d4e5a2 + 324bcff commit 9c9e4eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions choreo_GUI/choreo_GUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -2741,16 +2741,17 @@ window.addEventListener("keydown",
case 'ArrowRight':
case 'ArrowDown':
case 'ArrowUp':
GalleryKeyboardSelect(event.code)
GalleryKeyboardSelect(event)
break

}

}
)

function GalleryKeyboardSelect(keycode){
function GalleryKeyboardSelect(event){

keycode = event.code
// Am I currently in a gallery ?

var The_Gallery_View
Expand All @@ -2774,6 +2775,8 @@ function GalleryKeyboardSelect(keycode){

if (FoundGallery) {

event.preventDefault()

var SelectedNodes = The_Gallery_View.getSelectedNodes()

if (SelectedNodes.length == 1) {
Expand Down

0 comments on commit 9c9e4eb

Please sign in to comment.