Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

516 B
Raw Blame
import type { KeyboardEvent } from 'react';

import { focusSearchOnSlash } from '@platform/browser/searchShortcut';

/**
 * `/` inside the settings dialog jumps to its search field. The Preferences page gets the same key from its
 * `ManagerLayout`, which acts only while no modal is open; the dialog is one, so it handles the key itself.
 */
export const focusSettingsSearchOnSlash = (event: KeyboardEvent<HTMLElement>) => {
  focusSearchOnSlash(event.nativeEvent, event.currentTarget, '[data-manager-search]');
};