TanStack
Hotkeys v0v0
Framework
StartRouter
Data & State
QueryDBStoreAI
UI & UX
TableFormHotkeysMarkdownHighlight
Performance
VirtualPacer
Tooling
DevtoolsConfigCLIIntent
Blog
Blog & Release Notes
About
YouTubeThe official TanStack channel.WorkshopsLive sessions from the maintainers.Release NotesThe latest releases and changelog.
Channels
DiscordReal-time community support.GitHubSource, issues, discussions, and releases.
People & Work
MaintainersMeet the people maintaining the stack.ContributorsCore, library, and community contributors.ShowcaseTeams building with TanStack.
Tools
BuilderAlphaGenerate TanStack app starters.StatsNPM and ecosystem usage data.
Merch
View all
Support
Support OverviewFind the right support path.PartnersCompanies supporting TanStack.OSS SponsorsSponsors keeping TanStack open source.Enterprise SupportPrivate consulting and expert support.ContactGet in touch with the TanStack team.
About
EthosHow we approach open source.TenetsThe values that shape TanStack libraries.Design SystemLogos, tokens, and UI components.
Partners

Sponsorships, placements, and partner pages.

Work with
TanStack
Partnership Inquiry
Log In
Log In
Blog & Release Notes
About
YouTubeThe official TanStack channel.WorkshopsLive sessions from the maintainers.Release NotesThe latest releases and changelog.
Channels
DiscordReal-time community support.GitHubSource, issues, discussions, and releases.
People & Work
MaintainersMeet the people maintaining the stack.ContributorsCore, library, and community contributors.ShowcaseTeams building with TanStack.
Tools
BuilderAlphaGenerate TanStack app starters.StatsNPM and ecosystem usage data.
View all
Support
Support OverviewFind the right support path.PartnersCompanies supporting TanStack.OSS SponsorsSponsors keeping TanStack open source.Enterprise SupportPrivate consulting and expert support.ContactGet in touch with the TanStack team.
About
EthosHow we approach open source.TenetsThe values that shape TanStack libraries.Design SystemLogos, tokens, and UI components.
Partnership Inquiry
Docs
API Reference
  • Core API
  • Adapter API
  • Angular Inject APIs
Hotkeys API Reference
  • HotkeyManager
  • getHotkeyManager
  • HotkeyScopesState
  • Hotkey
  • HotkeyChord
  • HotkeySequence
  • RegisterableHotkey
  • RegisterableHotkeyChord
  • RegisterableHotkeySequence
  • RawHotkeyChord
  • HotkeyOptions
  • HotkeyChordOptions
  • HotkeySequenceOptions
  • HotkeyOptionsFor
  • HotkeyRegistrationHandle
  • HotkeyRegistrationView
  • HotkeyChordRegistrationView
  • HotkeySequenceRegistrationView
  • HotkeyRegistrationStatus
  • toHotkeyRegistrationView
  • HotkeyCallback
  • HotkeyCallbackContext
  • HotkeyChordCallbackContext
  • HotkeySequenceCallbackContext
  • HotkeyCallbackContextFor
  • HotkeyMeta
  • ConflictBehavior
  • isHotkeySequence
  • simplifyHotkey
  • createSequenceMatcher
  • DEFAULT_SEQUENCE_TIMEOUT
  • injectDefaultHotkeysOptions
  • injectFormatForDisplay
  • injectHotkey
  • injectHotkeyRegistrations
  • injectHotkeyScopesState
  • injectHotkeys
  • injectHotkeysContext
  • provideHotkeys
  • HotkeysContextValue
  • HotkeysProviderOptions
  • ProvideHotkeysOptions
  • InjectHotkeyChordOptions
  • InjectHotkeyCommonOptions
  • InjectHotkeyDefinition
  • InjectHotkeyOptions
  • InjectHotkeyOptionsFor
  • InjectHotkeySequenceOptions
  • InjectHotkeyTarget
  • HOTKEYS_INJECTION_TOKEN
App Hotkeys API Reference
  • defineAppHotkeys
  • AppHotkeysStore
  • provideAppHotkeys
  • publishAppHotkeysStore
  • AppHotkey
  • AppHotkeyInput
  • AppHotkeyOptions
  • AppHotkeyListItem
  • AppHotkeyStatus
  • AppHotkeysState
  • AppHotkeysStoreOptions
  • CustomHotkeys
  • Register
  • AppHotkeyId
  • RegisteredAppHotkeys
  • isAppHotkey
  • isCustomHotkey
  • resolveAppHotkey
  • injectAppHotkeyList
  • injectAppHotkeys
  • injectCustomHotkeys
  • InjectCustomHotkeysResult
  • InjectAppHotkeyOptions
Key hold & held keys API Reference
  • KeyStateTracker
  • getKeyStateTracker
  • KeyStateTrackerState
  • IndividualKey
  • matchesHeldModifiers
  • HeldModifierOptions
  • injectHeldKeyCodes
  • injectHeldKeys
  • injectHotkeyHint
  • injectKeyHold
Hotkey Recorder API Reference
  • HotkeyRecorder
  • HotkeyRecorderOptions
  • HotkeyChordRecorderOptions
  • HotkeySequenceRecorderOptions
  • HotkeyRecorderState
  • HotkeyRecorderCommitKeys
  • HotkeyRecorderValidationContext
  • HotkeyChordRecorderValidationContext
  • HotkeySequenceRecorderValidationContext
  • RecorderOptions
  • RecorderRejection
  • RecorderKeyMode
  • findHotkeyConflicts
  • HotkeyConflict
  • HotkeyConflictOptions
  • injectHotkeyRecorder
  • AngularHotkeyRecorder
Normalization & format API Reference
  • formatForDisplay
  • FormatDisplayOptions
  • DisplayHotkey
  • DisplayHotkeyChord
  • detectPlatform
  • HotkeyPlatform
  • formatHotkey
  • normalizeHotkey
  • parseHotkey
  • parseKeyboardEvent
  • ParsedHotkeyChord
  • matchesKeyboardEvent
  • areHotkeysEqual
  • validateHotkey
  • checkHotkey
  • assertValidHotkey
  • ValidationResult
  • ValidatableHotkey
  • LogicalKey
  • PhysicalKey
  • PhysicalKeyCode
  • KEY_DISPLAY_SYMBOLS
  • PUNCTUATION_KEY_DISPLAY_LABELS
  • MAC_MODIFIER_SYMBOLS
  • MAC_MODIFIER_LABELS
  • WINDOWS_MODIFIER_LABELS
  • LINUX_MODIFIER_LABELS
  • MODIFIER_ALIASES
  • MODIFIER_ORDER
  • MODIFIER_KEYS
HomeGet StartedGuidesAPIExamples
API Reference
  • Core API
  • Adapter API
  • Angular Inject APIs
Hotkeys API Reference
  • HotkeyManager
  • getHotkeyManager
  • HotkeyScopesState
  • Hotkey
  • HotkeyChord
  • HotkeySequence
  • RegisterableHotkey
  • RegisterableHotkeyChord
  • RegisterableHotkeySequence
  • RawHotkeyChord
  • HotkeyOptions
  • HotkeyChordOptions
  • HotkeySequenceOptions
  • HotkeyOptionsFor
  • HotkeyRegistrationHandle
  • HotkeyRegistrationView
  • HotkeyChordRegistrationView
  • HotkeySequenceRegistrationView
  • HotkeyRegistrationStatus
  • toHotkeyRegistrationView
  • HotkeyCallback
  • HotkeyCallbackContext
  • HotkeyChordCallbackContext
  • HotkeySequenceCallbackContext
  • HotkeyCallbackContextFor
  • HotkeyMeta
  • ConflictBehavior
  • isHotkeySequence
  • simplifyHotkey
  • createSequenceMatcher
  • DEFAULT_SEQUENCE_TIMEOUT
  • injectDefaultHotkeysOptions
  • injectFormatForDisplay
  • injectHotkey
  • injectHotkeyRegistrations
  • injectHotkeyScopesState
  • injectHotkeys
  • injectHotkeysContext
  • provideHotkeys
  • HotkeysContextValue
  • HotkeysProviderOptions
  • ProvideHotkeysOptions
  • InjectHotkeyChordOptions
  • InjectHotkeyCommonOptions
  • InjectHotkeyDefinition
  • InjectHotkeyOptions
  • InjectHotkeyOptionsFor
  • InjectHotkeySequenceOptions
  • InjectHotkeyTarget
  • HOTKEYS_INJECTION_TOKEN
App Hotkeys API Reference
  • defineAppHotkeys
  • AppHotkeysStore
  • provideAppHotkeys
  • publishAppHotkeysStore
  • AppHotkey
  • AppHotkeyInput
  • AppHotkeyOptions
  • AppHotkeyListItem
  • AppHotkeyStatus
  • AppHotkeysState
  • AppHotkeysStoreOptions
  • CustomHotkeys
  • Register
  • AppHotkeyId
  • RegisteredAppHotkeys
  • isAppHotkey
  • isCustomHotkey
  • resolveAppHotkey
  • injectAppHotkeyList
  • injectAppHotkeys
  • injectCustomHotkeys
  • InjectCustomHotkeysResult
  • InjectAppHotkeyOptions
Key hold & held keys API Reference
  • KeyStateTracker
  • getKeyStateTracker
  • KeyStateTrackerState
  • IndividualKey
  • matchesHeldModifiers
  • HeldModifierOptions
  • injectHeldKeyCodes
  • injectHeldKeys
  • injectHotkeyHint
  • injectKeyHold
Hotkey Recorder API Reference
  • HotkeyRecorder
  • HotkeyRecorderOptions
  • HotkeyChordRecorderOptions
  • HotkeySequenceRecorderOptions
  • HotkeyRecorderState
  • HotkeyRecorderCommitKeys
  • HotkeyRecorderValidationContext
  • HotkeyChordRecorderValidationContext
  • HotkeySequenceRecorderValidationContext
  • RecorderOptions
  • RecorderRejection
  • RecorderKeyMode
  • findHotkeyConflicts
  • HotkeyConflict
  • HotkeyConflictOptions
  • injectHotkeyRecorder
  • AngularHotkeyRecorder
Normalization & format API Reference
  • formatForDisplay
  • FormatDisplayOptions
  • DisplayHotkey
  • DisplayHotkeyChord
  • detectPlatform
  • HotkeyPlatform
  • formatHotkey
  • normalizeHotkey
  • parseHotkey
  • parseKeyboardEvent
  • ParsedHotkeyChord
  • matchesKeyboardEvent
  • areHotkeysEqual
  • validateHotkey
  • checkHotkey
  • assertValidHotkey
  • ValidationResult
  • ValidatableHotkey
  • LogicalKey
  • PhysicalKey
  • PhysicalKeyCode
  • KEY_DISPLAY_SYMBOLS
  • PUNCTUATION_KEY_DISPLAY_LABELS
  • MAC_MODIFIER_SYMBOLS
  • MAC_MODIFIER_LABELS
  • WINDOWS_MODIFIER_LABELS
  • LINUX_MODIFIER_LABELS
  • MODIFIER_ALIASES
  • MODIFIER_ORDER
  • MODIFIER_KEYS
AI/LLM: This documentation page is available in plain markdown format at/hotkeys/latest/docs/framework/angular/reference/functions/injectHotkeysContext.md
Hotkeys API Reference

injectHotkeysContext

ts
function injectHotkeysContext(): HotkeysContextValue;

Defined in: hotkeys-provider.ts:284

Returns the nearest provider's context. Injecting it activates that provider's scope.

Returns#

HotkeysContextValue

Edit on GitHub
PreviousinjectHotkeys
NextprovideHotkeys
Blog
@Tan_Stack on X.com
@TannerLinsley on X.com
GitHub
YouTube
Ethos
Tenets
Privacy Policy
Terms of Service
© 2026 TanStack LLC
PartnersBecome a Partner
Gold
CloudflareCloudflare
CodeRabbitCodeRabbit
NetlifyNetlify
RailwayRailway
LovableLovable
Silver
OpenRouterOpenRouter
WorkOSWorkOS
ClerkClerk
AG GridAG Grid
SerpApiSerpApi
Bronze
PrismaPrisma
SentrySentry
ElectricElectric
UnkeyUnkey
Latest Posts