Skip to content

Commit

Permalink
Refactor: scroll wheel volume control modifier key
Browse files Browse the repository at this point in the history
labels
  • Loading branch information
VampireChicken12 committed Nov 20, 2023
1 parent de1097e commit 4f9d92e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions public/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Enable modifier key"
},
"options": {
"altKey": "{{KEY}} key",
"ctrlKey": "{{KEY}} key",
"shiftKey": "{{KEY}} key"
},
"optionLabel": "{{KEY}} key",
"select": {
"label": "Modifier key",
"title": "The modifier key to use"
Expand Down
2 changes: 1 addition & 1 deletion public/locales/en-US.json.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ interface EnUS {
label: "Enable modifier key";
title: "Press a modifier key to enable volume adjustment with the scroll wheel.";
};
options: { altKey: "{{KEY}} key"; ctrlKey: "{{KEY}} key"; shiftKey: "{{KEY}} key" };
optionLabel: "{{KEY}} key";
select: { label: "Modifier key"; title: "The modifier key to use" };
title: "Scroll Wheel Modifier Key";
};
Expand Down
6 changes: 3 additions & 3 deletions src/components/Settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,19 @@ export default function Settings({
});
const scrollWheelVolumeControlModifierKeyOptions = [
{
label: t("settings.sections.scrollWheelVolumeControl.modifierKey.options.altKey", {
label: t("settings.sections.scrollWheelVolumeControl.modifierKey.optionLabel", {
KEY: "Alt"
}),
value: "altKey"
},
{
label: t("settings.sections.scrollWheelVolumeControl.modifierKey.options.ctrlKey", {
label: t("settings.sections.scrollWheelVolumeControl.modifierKey.optionLabel", {
KEY: "Ctrl"
}),
value: "ctrlKey"
},
{
label: t("settings.sections.scrollWheelVolumeControl.modifierKey.options.shiftKey", {
label: t("settings.sections.scrollWheelVolumeControl.modifierKey.optionLabel", {
KEY: "Shift"
}),
value: "shiftKey"
Expand Down

0 comments on commit 4f9d92e

Please sign in to comment.