diff --git a/src/renderer/screens/Editor/Sidebar/SpecialModifiers.js b/src/renderer/screens/Editor/Sidebar/SpecialModifiers.js index b4fba53c0..ce9a9ad8c 100644 --- a/src/renderer/screens/Editor/Sidebar/SpecialModifiers.js +++ b/src/renderer/screens/Editor/Sidebar/SpecialModifiers.js @@ -34,9 +34,9 @@ export const SpecialModifiers = (props) => { const { currentKey: key } = props; let isChecked = false; if (mod === "oneshot") { - isChecked = db.isInCategory(key, mod); + isChecked = db.isInCategory(key.code, mod); } else { - isChecked = db.isInCategory(key, mod) && !db.isInCategory(key.code, "dualuse"); + isChecked = db.isInCategory(key.code, mod) && !db.isInCategory(key.code, "dualuse"); } return ; }; @@ -47,7 +47,7 @@ export const SpecialModifiers = (props) => { const isShifted = db.isInCategory(key.code, "shift"); const isTopsyTurvy = db.isInCategory(key.code, "topsyturvy"); const isMod = (key, mod) => key.baseCode == mod || key.code == mod; - + const isModifier = db.isInCategory(key.baseCode || key.code, "modifier"); const c = db.constants.codes; const topsyTurvyAvailable = usePluginAvailable("TopsyTurvy"); @@ -74,11 +74,7 @@ export const SpecialModifiers = (props) => {