Skip to content

Commit

Permalink
fix: setKeyBindingMap
Browse files Browse the repository at this point in the history
  • Loading branch information
dineug committed Jan 21, 2024
1 parent d14c247 commit bb34ab9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,19 @@ import { hasDatabaseVendor, toSafeString } from '@/utils/validation';

import { ErdEditorElement, ErdEditorProps } from './ErdEditor';

const ExternalKeyBindingNameList = omit(KeyBindingNameList, [
const hasOmitKeyBindingName = arrayHas<string>([
KeyBindingName.edit,
KeyBindingName.stop,
KeyBindingName.search,
KeyBindingName.undo,
KeyBindingName.redo,
KeyBindingName.zoomIn,
KeyBindingName.zoomOut,
]) as string[];
]);

const ExternalKeyBindingNameList = KeyBindingNameList.filter(
key => !hasOmitKeyBindingName(key)
);

const defaultThemeOptions: ThemeOptions = {
grayColor: GrayColor.slate,
Expand Down

0 comments on commit bb34ab9

Please sign in to comment.