1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-28 17:20:13 +02:00

Add some more commands to commands palette.

Some refactoring also. Move palette events to commands.js.
This commit is contained in:
Kushagra Gour
2018-10-27 20:24:34 +05:30
parent 021f1390ab
commit f4de6572c2
6 changed files with 60 additions and 39 deletions

View File

@@ -1,11 +1,9 @@
import { h, Component } from 'preact';
import Modal from './Modal';
import { AutoFocusInput } from './common';
import { commands } from '../commands';
import {
commandPaletteService,
SWITCH_FILE_EVENT
} from '../commandPaletteService';
import { commands, SWITCH_FILE_EVENT } from '../commands';
import { commandPaletteService } from '../commandPaletteService';
import { FileIcon } from './FileIcon';
import { UP_KEY, DOWN_KEY, ENTER_KEY } from '../keyboardKeys';