fix: some shortcut keys with shift are invalid #629
This commit is contained in:
@@ -67,7 +67,7 @@ export class Shortcut {
|
||||
evt.metaKey === !!shortCut.meta) &&
|
||||
evt.shiftKey === !!shortCut.shift &&
|
||||
evt.altKey === !!shortCut.alt &&
|
||||
evt.key === shortCut.key
|
||||
evt.key.toLowerCase() === shortCut.key.toLowerCase()
|
||||
) {
|
||||
if (!shortCut.disable) {
|
||||
shortCut?.callback?.(this.command)
|
||||
|
||||
@@ -5,7 +5,7 @@ import { isApple } from '../../../utils/ua'
|
||||
|
||||
export const richtextKeys: IRegisterShortcut[] = [
|
||||
{
|
||||
key: KeyMap.X_UPPERCASE,
|
||||
key: KeyMap.X,
|
||||
ctrl: true,
|
||||
shift: true,
|
||||
callback: (command: Command) => {
|
||||
|
||||
Reference in New Issue
Block a user