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:
parent
310c71e18c
commit
175b327c5c
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue