|
|
|
@ -3,6 +3,7 @@ import { app } from '../../ApplicationServices/Application';
|
|
|
|
|
import * as xaop from 'xaop';
|
|
|
|
|
import { Editor } from '../../Editor/Editor';
|
|
|
|
|
import { IsNumble, IsChar } from '../../Common/Utils';
|
|
|
|
|
import { KeyBoardControls } from '../../Editor/KeyBoardControls';
|
|
|
|
|
|
|
|
|
|
export interface CommandMsg
|
|
|
|
|
{
|
|
|
|
@ -13,7 +14,7 @@ export class CommandStore
|
|
|
|
|
{
|
|
|
|
|
constructor(ed: Editor)
|
|
|
|
|
{
|
|
|
|
|
xaop.begin(ed.m_KeyCtrl, ed.m_KeyCtrl.OnKeyDown, (e: KeyboardEvent) =>
|
|
|
|
|
xaop.begin(ed.m_KeyCtrl, KeyBoardControls.prototype.OnKeyDown, (e: KeyboardEvent) =>
|
|
|
|
|
{
|
|
|
|
|
if (IsNumble(e.keyCode) || IsChar(e.keyCode))
|
|
|
|
|
{
|
|
|
|
|