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.metaKey === !!shortCut.meta) &&
|
||||||
evt.shiftKey === !!shortCut.shift &&
|
evt.shiftKey === !!shortCut.shift &&
|
||||||
evt.altKey === !!shortCut.alt &&
|
evt.altKey === !!shortCut.alt &&
|
||||||
evt.key === shortCut.key
|
evt.key.toLowerCase() === shortCut.key.toLowerCase()
|
||||||
) {
|
) {
|
||||||
if (!shortCut.disable) {
|
if (!shortCut.disable) {
|
||||||
shortCut?.callback?.(this.command)
|
shortCut?.callback?.(this.command)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { isApple } from '../../../utils/ua'
|
|||||||
|
|
||||||
export const richtextKeys: IRegisterShortcut[] = [
|
export const richtextKeys: IRegisterShortcut[] = [
|
||||||
{
|
{
|
||||||
key: KeyMap.X_UPPERCASE,
|
key: KeyMap.X,
|
||||||
ctrl: true,
|
ctrl: true,
|
||||||
shift: true,
|
shift: true,
|
||||||
callback: (command: Command) => {
|
callback: (command: Command) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user