Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp
369 B
Raw Blame
// SPDX-License-Identifier: AGPL-3.0-or-later

import KeybindManager from '@app/features/app/keybindings/KeybindManager';
import type {I18n} from '@lingui/core';
import {useEffect} from 'react';

export function useKeybindManager(i18n: I18n): void {
	useEffect(() => {
		void KeybindManager.init(i18n);
		return () => {
			KeybindManager.destroy();
		};
	}, [i18n]);
}