smoosic
Version:
<sub>[Github site](https://github.com/Smoosic/smoosic) | [source documentation](https://smoosic.github.io/Smoosic/release/docs/modules.html) | [change notes](https://aarondavidnewman.github.io/Smoosic/changes.html) | [application](https://smoosic.github.i
158 lines (157 loc) • 3.83 kB
text/typescript
import { KeyBinding } from '../../../application/common';
/**
* @internal
*/
export class defaultTrackerKeys {
static get keys(): KeyBinding[] {
return [{
event: "keydown",
key: "Home",
ctrlKey: false,
altKey: false,
shiftKey: false,
action: "moveHome"
}, {
event: "keydown",
key: "Home",
ctrlKey: true,
altKey: false,
shiftKey: false,
action: "moveHome"
}, {
event: "keydown",
key: "Home",
ctrlKey: false,
altKey: false,
shiftKey: true,
action: "moveHome"
}, {
event: "keydown",
key: "Home",
ctrlKey: true,
altKey: false,
shiftKey: true,
action: "moveHome"
}, {
event: "keydown",
key: "End",
ctrlKey: false,
altKey: false,
shiftKey: false,
action: "moveEnd"
}, {
event: "keydown",
key: "End",
ctrlKey: false,
altKey: false,
shiftKey: true,
action: "moveEnd"
}, {
event: "keydown",
key: "End",
ctrlKey: true,
altKey: false,
shiftKey: false,
action: "moveEnd"
}, {
event: "keydown",
key: "End",
ctrlKey: true,
altKey: false,
shiftKey: true,
action: "moveEnd"
}, {
event: "keydown",
key: "ArrowRight",
ctrlKey: false,
altKey: false,
shiftKey: false,
action: "moveSelectionRight"
}, {
event: "keydown",
key: "ArrowRight",
ctrlKey: false,
altKey: true,
shiftKey: false,
action: "advanceModifierSelection"
}, {
event: "keydown",
key: "ArrowLeft",
ctrlKey: false,
altKey: true,
shiftKey: false,
action: "advanceModifierSelection"
},{
event: "keydown",
key: "ArrowLeft",
ctrlKey: false,
altKey: false,
shiftKey: false,
action: "moveSelectionLeft"
}, {
event: "keydown",
key: "ArrowRight",
ctrlKey: false,
altKey: false,
shiftKey: true,
action: "growSelectionRight"
}, {
event: "keydown",
key: "ArrowRight",
ctrlKey: true,
altKey: false,
shiftKey: true,
action: "growSelectionRightMeasure"
}, {
event: "keydown",
key: "ArrowLeft",
ctrlKey: false,
altKey: false,
shiftKey: true,
action: "growSelectionLeft"
}, {
event: "keydown",
key: "ArrowUp",
ctrlKey: false,
altKey: false,
shiftKey: false,
action: "moveSelectionUp"
}, {
event: "keydown",
key: "ArrowDown",
ctrlKey: false,
altKey: false,
shiftKey: false,
action: "moveSelectionDown"
}, {
event: "keydown",
key: "ArrowRight",
ctrlKey: true,
altKey: false,
shiftKey: false,
action: "moveSelectionRightMeasure"
}, {
event: "keydown",
key: "ArrowLeft",
ctrlKey: true,
altKey: false,
shiftKey: false,
action: "moveSelectionLeftMeasure"
},{
event: "keydown",
key: "ArrowUp",
ctrlKey: false,
altKey: false,
shiftKey: true,
action: "moveSelectionPitchUp"
},{
event: "keydown",
key: "ArrowDown",
ctrlKey: false,
altKey: false,
shiftKey: true,
action: "moveSelectionPitchDown"
}
];
}
}