Skip to content

Commit

Permalink
Changed way of handling ctrl!.
Browse files Browse the repository at this point in the history
  • Loading branch information
niegowski committed Feb 19, 2021
1 parent 1bfa9e0 commit 70593a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ckeditor5-utils/src/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function getEnvKeystrokeText( keystroke ) {
if ( env.isMac ) {
return modifiersToMacGlyphs[ key.toLowerCase() ] || key;
} else {
return key.toLowerCase() == 'ctrl!' ? 'Ctrl' : key;
return key.endsWith( '!' ) ? key.slice( 0, -1 ) : key;
}
} )

Expand Down

0 comments on commit 70593a0

Please sign in to comment.