import React from 'react'; import hotkeys from 'hotkeys-js'; import {HOTKEY_LABELS, toHotkeysJsFormat} from '../constants'; interface EditorTabsGlobalHotkeysHandlers { handleNewTab: () => void; handleCloseActiveTab: () => void; handleRenameTab: () => void; handleDuplicateTab: () => void; handleNextTab: () => void; handlePreviousTab: () => void; handleCloseOtherTabs: () => void; handleCloseAllTabs: () => void; handleSaveQueryAs: () => void; } /** * Registers global keyboard shortcuts for editor tab management. * * These hotkeys work when focus is outside Monaco editor (e.g. on tabs, result pane, controls). * When Monaco editor is focused, its own `addAction` keybindings handle the same shortcuts — * no double-firing occurs because `hotkeys-js` ignores events from `