Add F11 fullscreen toggle support (#1879)

This commit is contained in:
Copilot
2026-04-01 11:42:33 +08:00
committed by GitHub
parent ae67d5247c
commit acbde61409
5 changed files with 91 additions and 1 deletions
+8
View File
@@ -198,6 +198,14 @@ public class ViewWindowManager : IDisposable
BeginShowNewWindow(_invokedPath, matchedPlugin);
}
public void ToggleFullscreen()
{
if (!_viewerWindow.IsVisible)
return;
_viewerWindow.ToggleFullscreen();
}
private void BeginShowNewWindow(string path, IViewer matchedPlugin)
{
_viewerWindow.UnloadPlugin();