diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs index c7d86c7e6..387ae63aa 100644 --- a/Ryujinx/Ui/MainWindow.cs +++ b/Ryujinx/Ui/MainWindow.cs @@ -1072,6 +1072,15 @@ namespace Ryujinx.Ui ConfigurationState.Instance.Graphics.AspectRatio.Value = ((int)aspectRatio + 1) > Enum.GetNames(typeof(AspectRatio)).Length - 1 ? AspectRatio.Fixed4x3 : aspectRatio + 1; } + private void Focus_Menu_Bar(object sender, KeyReleaseEventArgs args) + { + if (args.Event.Key == Gdk.Key.Alt_L) + { + ToggleExtraWidgets(true); + _menuBar.GrabFocus(); + } + } + private void Row_Clicked(object sender, ButtonReleaseEventArgs args) { if (args.Event.Button != 3 /* Right Click */) @@ -1364,6 +1373,11 @@ namespace Ryujinx.Ui settingsWindow.Show(); } + private void HideUi_Pressed(object sender, EventArgs args) + { + ToggleExtraWidgets(false); + } + private void ManageUserProfiles_Pressed(object sender, EventArgs args) { UserProfilesManagerWindow userProfilesManagerWindow = new UserProfilesManagerWindow(_accountManager, _contentManager, _virtualFileSystem); diff --git a/Ryujinx/Ui/MainWindow.glade b/Ryujinx/Ui/MainWindow.glade index 7bf38f473..abe969075 100644 --- a/Ryujinx/Ui/MainWindow.glade +++ b/Ryujinx/Ui/MainWindow.glade @@ -6,6 +6,7 @@ False Ryujinx center + True @@ -14,7 +15,7 @@ True - False + True True @@ -338,6 +339,15 @@ + + + True + False + Hide UI (Alt to show) + True + + +