mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-08 03:06:29 +08:00
Add F11 fullscreen toggle support (#1879)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user