Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

387 B
Raw Blame
import { computed } from 'vue'
import { useTaskView } from '@/composables/useTaskView'
import { useUiPreferencesStore } from '@/stores/uiPreferences.store'

export function useShortcutsEnabled() {
  const { isDesktop } = useTaskView()
  const uiPreferencesStore = useUiPreferencesStore()

  return computed(() => isDesktop.value && uiPreferencesStore.settings.keyboardShortcuts !== 0)
}