aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/main.ts
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-06-11 13:43:26 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2025-06-11 14:38:56 +0200
commit0a8dbb402b932e3815822fe28e82d8f63f5cb218 (patch)
tree0a38e6a70894116339e48053ec19cb7764366aa3 /apps/files/src/main.ts
parentc4f071a577843751647879dfa97a29372bfb9e18 (diff)
downloadnextcloud-server-refactor/files-hotkeys.tar.gz
nextcloud-server-refactor/files-hotkeys.zip
refactor(files): move hotkey handling to composablerefactor/files-hotkeys
This is a composable - not a service, because it is using the `useHotKey` composable. At this moment it works, but in general its only safe to put composables into `setup`-context. This makes it future prove. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/src/main.ts')
-rw-r--r--apps/files/src/main.ts4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/files/src/main.ts b/apps/files/src/main.ts
index 4b8aca9efd4..463ecaf6239 100644
--- a/apps/files/src/main.ts
+++ b/apps/files/src/main.ts
@@ -8,7 +8,6 @@ import { PiniaVuePlugin } from 'pinia'
import Vue from 'vue'
import { getPinia } from './store/index.ts'
-import { registerHotkeys } from './services/HotKeysService.ts'
import FilesApp from './FilesApp.vue'
import router from './router/router'
import RouterService from './services/RouterService'
@@ -40,9 +39,6 @@ if (!window.OCP.Files.Router) {
// Init Pinia store
Vue.use(PiniaVuePlugin)
-// Init HotKeys AFTER pinia is set up
-registerHotkeys()
-
// Init Files App Settings Service
const Settings = new SettingsService()
Object.assign(window.OCA.Files, { Settings })