forked from Harvey1024/fman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
34 lines (28 loc) · 777 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// var fs = require("fs")
const MainPane = require('./js/view/view')
const KeyboardHander = require('./js/command/keyhander')
// const KeyboardHander = require('./js/command/keyboard')
// initial filelist after html loaded
var mainpane = new MainPane()
window.onload = function () {
mainpane.refresh()
}
// window resize
window.onresize = function () {
// Pane.resetWindowHeight()
}
// const keyHander = new KeyboardHander(mainpane)
const keyHander = KeyboardHander(mainpane)
document.onkeydown = function (event) {
// key event action
// console.log(event)
keyHander.hander(event)
}
// function filter () {
// kd.filter(mainp.activepane)
// }
window.onclose = function () {
// dirlog.writDirs()
// dirlog.test()
}
// k2 = new qcmd.quickcmd('new folder')