diff --git a/src/mumble/GlobalShortcutTypes.h b/src/mumble/GlobalShortcutTypes.h index e58300fbf0..89872f8c76 100644 --- a/src/mumble/GlobalShortcutTypes.h +++ b/src/mumble/GlobalShortcutTypes.h @@ -63,6 +63,7 @@ enum Type { ListenerAttenuationUp, ListenerAttenuationDown, AdaptivePush, + ToggleFullScreen, }; // A few assertions meant to catch, if anyone inserts a new value in-between instead of appending diff --git a/src/mumble/MainWindow.cpp b/src/mumble/MainWindow.cpp index 2e58090708..4efef8091e 100644 --- a/src/mumble/MainWindow.cpp +++ b/src/mumble/MainWindow.cpp @@ -454,6 +454,11 @@ void MainWindow::createActions() { gsAdaptivePush->qsToolTip = tr("When using the push-to-talk transmission mode, this will act as the push-to-talk " "action. Otherwise, it will act as a push-to-mute action.", "Global Shortcut"); + + gsToggleFullScreen = new GlobalShortcut(this, GlobalShortcutType::ToggleFullScreen, + tr("ToggleFullScreen", "Global Shortcut")); + gsToggleFullScreen->setObjectName("gsToggleFullScreen"); + gsToggleFullScreen->qsWhatsThis = tr("This will toggle FullScreen on/off"); } void MainWindow::setupGui() { diff --git a/src/mumble/MainWindow.h b/src/mumble/MainWindow.h index 2e729e903c..cc4196f4df 100644 --- a/src/mumble/MainWindow.h +++ b/src/mumble/MainWindow.h @@ -115,6 +115,7 @@ class MainWindow : public QMainWindow, public Ui::MainWindow { GlobalShortcut *gsMoveBack; GlobalShortcut *gsCycleListenerAttenuationMode, *gsListenerAttenuationUp, *gsListenerAttenuationDown; GlobalShortcut *gsAdaptivePush; + GlobalShortcut *gsToggleFullScreen; DockTitleBar *dtbLogDockTitle, *dtbChatDockTitle;