parent
797b9a14df
commit
bb2875516c
@ -0,0 +1,22 @@
|
|||||||
|
import { Command, ListStyle, ListType } from '../../..'
|
||||||
|
import { KeyMap } from '../../../dataset/enum/KeyMap'
|
||||||
|
import { IRegisterShortcut } from '../../../interface/shortcut/Shortcut'
|
||||||
|
|
||||||
|
export const listKeys: IRegisterShortcut[] = [
|
||||||
|
{
|
||||||
|
key: KeyMap.I,
|
||||||
|
shift: true,
|
||||||
|
mod: true,
|
||||||
|
callback: (command: Command) => {
|
||||||
|
command.executeList(ListType.UL, ListStyle.DISC)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: KeyMap.U,
|
||||||
|
shift: true,
|
||||||
|
mod: true,
|
||||||
|
callback: (command: Command) => {
|
||||||
|
command.executeList(ListType.OL)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@ -0,0 +1,56 @@
|
|||||||
|
import { Command, TitleLevel } from '../../..'
|
||||||
|
import { KeyMap } from '../../../dataset/enum/KeyMap'
|
||||||
|
import { IRegisterShortcut } from '../../../interface/shortcut/Shortcut'
|
||||||
|
|
||||||
|
export const titleKeys: IRegisterShortcut[] = [
|
||||||
|
{
|
||||||
|
key: KeyMap.ZERO,
|
||||||
|
alt: true,
|
||||||
|
ctrl: true,
|
||||||
|
callback: (command: Command) => {
|
||||||
|
command.executeTitle(null)
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: KeyMap.ONE,
|
||||||
|
alt: true,
|
||||||
|
ctrl: true,
|
||||||
|
callback: (command: Command) => {
|
||||||
|
command.executeTitle(TitleLevel.FIRST)
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: KeyMap.TWO,
|
||||||
|
alt: true,
|
||||||
|
ctrl: true,
|
||||||
|
callback: (command: Command) => {
|
||||||
|
command.executeTitle(TitleLevel.SECOND)
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: KeyMap.THREE,
|
||||||
|
alt: true,
|
||||||
|
ctrl: true,
|
||||||
|
callback: (command: Command) => {
|
||||||
|
command.executeTitle(TitleLevel.THIRD)
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: KeyMap.FOUR,
|
||||||
|
alt: true,
|
||||||
|
ctrl: true,
|
||||||
|
callback: (command: Command) => {
|
||||||
|
command.executeTitle(TitleLevel.FOURTH)
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: KeyMap.FIVE,
|
||||||
|
alt: true,
|
||||||
|
ctrl: true,
|
||||||
|
callback: (command: Command) => {
|
||||||
|
command.executeTitle(TitleLevel.FIFTH)
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: KeyMap.SIX,
|
||||||
|
alt: true,
|
||||||
|
ctrl: true,
|
||||||
|
callback: (command: Command) => {
|
||||||
|
command.executeTitle(TitleLevel.SIXTH)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
Loading…
Reference in new issue