mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 06:46:00 +00:00
fix
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
|
const electron = getElectron();
|
||||||
|
|
||||||
registerCommand({
|
registerCommand({
|
||||||
id: 'commandPalette.show',
|
id: 'commandPalette.show',
|
||||||
category: 'Command palette',
|
category: 'Command palette',
|
||||||
@@ -17,7 +19,7 @@
|
|||||||
id: 'database.search',
|
id: 'database.search',
|
||||||
category: 'Database',
|
category: 'Database',
|
||||||
name: 'Search',
|
name: 'Search',
|
||||||
keyText: 'Ctrl+P',
|
keyText: electron ? 'Ctrl+P' : 'F3',
|
||||||
onClick: () => visibleCommandPalette.set(true),
|
onClick: () => visibleCommandPalette.set(true),
|
||||||
testEnabled: () => !getVisibleCommandPalette(),
|
testEnabled: () => !getVisibleCommandPalette(),
|
||||||
});
|
});
|
||||||
@@ -41,6 +43,7 @@
|
|||||||
visibleCommandPalette,
|
visibleCommandPalette,
|
||||||
} from '../stores';
|
} from '../stores';
|
||||||
import clickOutside from '../utility/clickOutside';
|
import clickOutside from '../utility/clickOutside';
|
||||||
|
import getElectron from '../utility/getElectron';
|
||||||
import keycodes from '../utility/keycodes';
|
import keycodes from '../utility/keycodes';
|
||||||
import { useDatabaseInfo } from '../utility/metadataLoaders';
|
import { useDatabaseInfo } from '../utility/metadataLoaders';
|
||||||
import registerCommand from './registerCommand';
|
import registerCommand from './registerCommand';
|
||||||
|
|||||||
Reference in New Issue
Block a user