refocus the presentation item

This command sets the keyboard focus to the presentation item which
controls when slides are changed. It ensures that after every action
you can use the arrow keys to switch the slides.
This commit is contained in:
Chris Cochrun 2023-03-20 11:38:07 -05:00
parent 310c71e18c
commit 175b327c5c
2 changed files with 8 additions and 2 deletions

View file

@ -241,9 +241,9 @@ Controls.Page {
imageEditor.visible = false;
presentationEditor.visible = false;
presentation.visible = true;
presentation.focusTimer = true;
currentWindow = presentation;
editMode = false;
refocusPresentation();
}
} else {
videoEditor.visible = false;
@ -252,10 +252,10 @@ Controls.Page {
imageEditor.visible = false;
presentationEditor.visible = false;
presentation.visible = true;
presentation.focusTimer = true;
currentWindow = presentation;
editMode = false;
presenting = true;
refocusPresentation();
}
}
@ -276,4 +276,9 @@ Controls.Page {
presentation.slide.seek(pos);
pWindow.slide.seek(pos);
}
function refocusPresentation() {
presentation.forceActiveFocus();
presentation.focusTimer = true;
}
}

View file

@ -250,6 +250,7 @@ Item {
serviceItemList.currentIndex = index;
ServiceItemModel.select(index);
}
refocusPresentation();
}
onDoubleClicked: {