Feat(UI): Reintroduce middle click to open image in new tab by DustyShoe · Pull Request #8998 · invoke-ai/InvokeAI

Summary

This PR adds back optional feature that allows to open image in separate window (built-in UI) or new tab if browser is used.

Basically it imitates Open in new tab in every instance where it was possible to open image through right click menu.

Feature can be activated in Settings: Use Middle Click to open Images in New Tab
image

Related Issues / Discussions

Closes #8973

QA Instructions

Verify that image opens in:

  • Gallery
  • Viewer
  • Reference mage (you'll have to expand so reference image menu is visible. Small preview thumbnail does not have Right Click menu)
  • Upscale tab
  • Workflows

Merge Plan

Simple merge

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)