Skip to content

Commit 9443c43

Browse files
fix: use ICopyable for copy data (#42)
1 parent 7ce901d commit 9443c43

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/navigation_controller.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,20 @@
1313
import './gesture_monkey_patch';
1414

1515
import * as Blockly from 'blockly/core';
16-
import {ASTNode, ShortcutRegistry, BlockSvg, WorkspaceSvg} from 'blockly/core';
16+
import {ASTNode, ShortcutRegistry, BlockSvg, WorkspaceSvg, ICopyData} from 'blockly/core';
1717
import {utils as BlocklyUtils} from 'blockly/core';
1818

1919
import * as Constants from './constants';
2020
import {Navigation} from './navigation';
2121
import {Announcer} from './announcer';
2222
import {LineCursor} from './line_cursor';
23-
// TODO (#40): Use ICopyable instead.
24-
import {BlockCopyData} from 'node_modules/blockly/core/clipboard/block_paster';
2523

2624
/**
2725
* Class for registering shortcuts for keyboard navigation.
2826
*/
2927
export class NavigationController {
3028
/** Data copied by the copy or cut keyboard shortcuts. */
31-
copyData: BlockCopyData | null = null;
29+
copyData: ICopyData | null = null;
3230

3331
/** The workspace a copy or cut keyboard shortcut happened in. */
3432
copyWorkspace: WorkspaceSvg | null = null;

0 commit comments

Comments
 (0)