mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-08-04 14:11:11 -07:00
18 lines
482 B
TypeScript
18 lines
482 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2026 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { useMemo } from 'react';
|
|
import type { KeyMatchers } from '../key/keyMatchers.js';
|
|
import { defaultKeyMatchers } from '../key/keyMatchers.js';
|
|
|
|
/**
|
|
* Hook to retrieve the currently active key matchers.
|
|
* This prepares the codebase for dynamic or custom key bindings in the future.
|
|
*/
|
|
export function useKeyMatchers(): KeyMatchers {
|
|
return useMemo(() => defaultKeyMatchers, []);
|
|
}
|