mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +00:00
feat(sqllab): Add keyboard shortcut helper (#25542)
This commit is contained in:
@@ -23,13 +23,14 @@ import { css, styled, usePrevious } from '@superset-ui/core';
|
||||
|
||||
import { queryEditorSetSelectedText } from 'src/SqlLab/actions/sqlLab';
|
||||
import { FullSQLEditor as AceEditor } from 'src/components/AsyncAceEditor';
|
||||
import type { KeyboardShortcut } from 'src/SqlLab/components/KeyboardShortcutButton';
|
||||
import useQueryEditor from 'src/SqlLab/hooks/useQueryEditor';
|
||||
import { useAnnotations } from './useAnnotations';
|
||||
import { useKeywords } from './useKeywords';
|
||||
|
||||
type HotKey = {
|
||||
key: string;
|
||||
descr: string;
|
||||
key: KeyboardShortcut;
|
||||
descr?: string;
|
||||
name: string;
|
||||
func: (aceEditor: IAceEditor) => void;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user