feat: setHighlightSounds & openSubscriptionPage split hotkeys (#5856)

This commit is contained in:
Brian
2025-03-03 14:20:09 -05:00
committed by GitHub
parent 34429671ba
commit 8dd19d2d5e
7 changed files with 92 additions and 13 deletions
+12
View File
@@ -195,6 +195,18 @@ inline const std::map<HotkeyCategory, ActionDefinitionMap> actionNames{
},
.argumentsPrompt = "Target popup:",
}},
{"setHighlightSounds",
ActionDefinition{
.displayName = "Set highlight sounds",
.argumentDescription = "[on or off. default: toggle]",
.minCountArguments = 0,
.maxCountArguments = 1,
.possibleArguments = HOTKEY_ARG_ON_OFF_TOGGLE,
.argumentsPrompt = "New value:",
.argumentsPromptHover =
"Should highlight sounds be enabled, disabled or toggled",
}},
{"openSubscriptionPage", ActionDefinition{"Open subscription page"}},
}},
{HotkeyCategory::SplitInput,
{
+1 -1
View File
@@ -75,7 +75,7 @@ Qt::ShortcutContext Hotkey::getContext() const
}
qCDebug(chatterinoHotkeys)
<< "Using default shortcut context for" << this->getCategory()
<< "and hopeing for the best.";
<< "and hoping for the best.";
return Qt::WidgetShortcut;
}