Skip to content

Commit

Permalink
FEAT(client): Implemented new Global Shortcuts
Browse files Browse the repository at this point in the history
As mentionned in #6229, this commit implements new global shortcuts linked to the menu actions.
The following actions are now available:
- [x] Connect to a server
- [x] Disconnect from server
- [x] Open server information
- [x] Open server tokens
- [x] Open server user list
- [x] Open server ban list
- [x] Toggle priority speaker
- [x] Open recording dialog
- [x] Change comment
- [x] Change avatar
- [x] Remove avatar
- [x] Register on the server
- [x] Audio statistics
- [x] Open settings
- [x] Start audio wizard
- [x] Start certificate wizard
- [x] Toggle TTS
- [x] Open about dialog
- [x] Open about Qt dialog
- [x] Check for update

Implements #6229
  • Loading branch information
Globostofo committed Nov 4, 2023
1 parent 1e5a126 commit 12cf5df
Show file tree
Hide file tree
Showing 3 changed files with 578 additions and 165 deletions.
21 changes: 21 additions & 0 deletions src/mumble/GlobalShortcutTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,34 @@ enum Type {
ToggleTalkingUI,
ToggleSearch,
ListenToChannel,
ServerConnect,
ServerDisconnect,
ServerInformation,
ServerTokens,
ServerUserList,
ServerBanList,
SelfPrioritySpeaker,
Recording,
SelfComment,
ServerTexture,
ServerTextureRemove,
SelfRegister,
AudioStats,
ConfigDialog,
AudioWizard,
ConfigCert,
AudioTTS,
HelpAbout,
HelpAboutQt,
HelpVersionCheck,
};

// A few assertions meant to catch, if anyone inserts a new value in-between instead of appending
// to the end of the enum
static_assert(PushToTalk == 1, "You may only append to the end of the enum!");
static_assert(ToggleMinimalView == 9, "You may only append to the end of the enum!");
static_assert(ToggleSearch == 22, "You may only append to the end of the enum!");
static_assert(HelpVersionCheck == 43, "You may only append to the end of the enum!");
} // namespace GlobalShortcutType

#endif // MUMBLE_MUMBLE_GLOBALSHORTCUTTYPES_H_
Loading

0 comments on commit 12cf5df

Please sign in to comment.