diff --git a/apps/files/src/services/HotKeysService.ts b/apps/files/src/services/HotKeysService.ts index 8318554ea99..72758e5e45f 100644 --- a/apps/files/src/services/HotKeysService.ts +++ b/apps/files/src/services/HotKeysService.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ import { dirname } from 'path' -import { useHotKey } from '@nextcloud/vue/dist/Composables/useHotKey.js' +import { useHotKey } from '@nextcloud/vue/composables/useHotKey' import { action as deleteAction } from '../actions/deleteAction.ts' import { action as favoriteAction } from '../actions/favoriteAction.ts' diff --git a/apps/systemtags/src/services/HotKeysService.ts b/apps/systemtags/src/services/HotKeysService.ts index 3d447397941..07b6eadaad1 100644 --- a/apps/systemtags/src/services/HotKeysService.ts +++ b/apps/systemtags/src/services/HotKeysService.ts @@ -18,6 +18,7 @@ export const registerHotkeys = function() { useHotKey('t', () => executeAction(manageTagAction), { stop: true, prevent: true, + window, }) logger.debug('Hotkeys registered') diff --git a/vitest.config.mts b/vitest.config.mts index 4fe5bd4d32f..3ffb7a0eb18 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -27,6 +27,10 @@ export default defineConfig({ plugins: [vue()], test: { include: ['{apps,core}/**/*.{test,spec}.?(c|m)[jt]s?(x)'], + env: { + LANG: 'en-US', + TZ: 'UTC', + }, environment: 'jsdom', environmentOptions: { jsdom: {