Skip to content

Commit

Permalink
fix letter case state
Browse files Browse the repository at this point in the history
  • Loading branch information
RED-ROSE515 committed Oct 18, 2024
1 parent 142d8d8 commit 9555022
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shortcuts/letterCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ const letterCase: Shortcut = {
label: 'LetterCase',
description: 'Change the Letter case.',
svg: Icon,
canExecute: getState => isDocumentEditable() && !!getState().cursor,
canExecute: state => isDocumentEditable() && !!state.cursor,
multicursor: {
enabled: false,
error: () => 'Cannot change text color with multiple thoughts.',
},
exec: dispatch => {
dispatch({ type: 'toggleLetterCase' })
},
isActive: getState => !!getState().cursor,
isDropdownOpen: getState => !!getState().showColorPicker,
isActive: state => !!state.cursor,
isDropdownOpen: state => !!state.showLetterCase,
}

export default letterCase

0 comments on commit 9555022

Please sign in to comment.