1- 'use strict' ;
2-
31/* global CloudCmd, DOM */
4- const clipboard = require ( '@cloudcmd/clipboard' ) ;
5- const { fullstore} = require ( 'fullstore' ) ;
6-
7- const Buffer = require ( '../dom/buffer.mjs' ) ;
8- const Events = require ( '#dom/events' ) ;
9- const KEY = require ( './key' ) ;
10-
11- const _vim = require ( './vim' ) ;
12- const setCurrentByChar = require ( './set-current-by-char' ) ;
13- const { createBinder} = require ( './binder' ) ;
2+ import clipboard from '@cloudcmd/clipboard' ;
3+ import { fullstore } from 'fullstore' ;
4+ import * as Events from '#dom/events' ;
5+ import * as Buffer from '../dom/buffer.mjs' ;
6+ import KEY from './key.js' ;
7+ import _vim from './vim/index.js' ;
8+ import setCurrentByChar from './set-current-by-char.js' ;
9+ import { createBinder } from './binder.js' ;
1410
1511const Chars = fullstore ( ) ;
1612
@@ -28,13 +24,16 @@ Chars([]);
2824const { assign} = Object ;
2925const binder = createBinder ( ) ;
3026
31- module . exports = assign ( binder , KEY ) ;
32- module . exports . bind = ( ) => {
27+ const bind = ( ) => {
3328 Events . addKey ( listener , true ) ;
3429 binder . setBind ( ) ;
3530} ;
3631
37- module . exports . _listener = listener ;
32+ export const Key = assign ( binder , KEY , {
33+ bind,
34+ } ) ;
35+
36+ export const _listener = listener ;
3837
3938function getChar ( event ) {
4039 /*
0 commit comments