Since #12241 we have notifications for this when the user navigates away from the viewer, but we do not yet warn when switching documents, which means that if you call e.g. `PDFViewerApplication.open` with a new document (or directly call `BaseViewer.setDocument` when using the viewer components standalone) there won't be any warning about losing form data. This should be addressed.
}
        break;
    }
  }
  if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC || CHROME")) {
    const { eventBus } = PDFViewerApplication;
    
    if (cmd === 1 || cmd === 8) {
      switch (evt.keyCode) {
        case 83: 
          eventBus.dispatch("download", { source: window });
          handled = true;
          break;
        case 79: 
          if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
            eventBus.dispatch("openfile", { source: window });
            handled = true;
          }
          break;
      }
    }
  }
  
  if (cmd === 3 || cmd === 10) {
    switch (evt.keyCode) {
      case 80: 
        PDFViewerApplication.requestPresentationMode();
        handled = true;
        break;
      case 71: