Skip to content

Commit

Permalink
slideshow: prevent slide sorter to receive key events on fullscreen mode
Browse files Browse the repository at this point in the history
Apart from changing the current slide in the editor,
this causes the onUpdateParts to be triggered which in turn request presentation
info again even if that's not needed.

Signed-off-by: Marco Cecchetti <[email protected]>
Change-Id: I15efd3d205c7b03a76d04ff0e8f4f22b07bac00e
  • Loading branch information
mcecchetti committed Nov 27, 2024
1 parent ea6250e commit 9a55269
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions browser/src/slideshow/SlideShowPresenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,8 @@ class SlideShowPresenter {
if (!this._onPrepareScreen(false))
// opens full screen, has to be on user interaction
return;
// disable slide sorter or it will receive key events
this._map._docLayer._preview.partsFocused = false;

this._startSlide = that?.startSlideNumber ?? 0;
app.socket.sendMessage('getpresentationinfo');
Expand Down

0 comments on commit 9a55269

Please sign in to comment.