refactor: move non-US keybinding support

This commit is contained in:
purocean
2026-09-19 12:37:12 +08:00
parent 1ca02c0450
commit d9ef2d1eaf
3 changed files with 2 additions and 2 deletions
@@ -74,7 +74,7 @@ import { computed, h, onUnmounted, ref, shallowRef, watch, watchEffect } from 'v
import { getDefaultApplicationAccelerators } from '@share/misc'
import { getRawActions, registerAction, removeAction } from '@fe/core/action'
import { Alt, Cmd, Ctrl, Meta, Shift, Win, disableShortcuts, enableShortcuts, getKeyLabel, getKeysLabel } from '@fe/core/keybinding'
import { recordNonUsKey } from '@fe/non-us-keybinding'
import { recordNonUsKey } from '@fe/support/non-us-keybinding'
import { isMacOS, isOtherOS, isWindows } from '@fe/support/env'
import { useModal } from '@fe/support/ui/modal'
import { getSetting, setSetting } from '@fe/services/setting'
+1 -1
View File
@@ -2,7 +2,7 @@ import { upperFirst } from 'lodash-es'
import { getLogger } from '@fe/utils'
import { isMacOS, isOtherOS, isWindows } from '@fe/support/env'
import { FLAG_DISABLE_SHORTCUTS } from '@fe/support/args'
import { isNonUsLayoutEnabled, matchNonUsKey } from '@fe/non-us-keybinding'
import { isNonUsLayoutEnabled, matchNonUsKey } from '@fe/support/non-us-keybinding'
import type { BuildInActions } from '@fe/types'
import { getAction, getActionHandler, getRawActions } from './action'
import { triggerHook } from './hook'