@elyun/bylane 1.21.0 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/monitor/index.js +8 -0
package/package.json
CHANGED
package/src/monitor/index.js
CHANGED
|
@@ -97,6 +97,14 @@ screen.key('s', () => {
|
|
|
97
97
|
list.focus()
|
|
98
98
|
screen.render()
|
|
99
99
|
|
|
100
|
+
// 명시적 키 바인딩 (screen-level 핸들러와 충돌 방지)
|
|
101
|
+
list.key(['up', 'k'], () => { list.up(1); screen.render() })
|
|
102
|
+
list.key(['down', 'j'], () => { list.down(1); screen.render() })
|
|
103
|
+
list.key('enter', () => {
|
|
104
|
+
const idx = list.selected
|
|
105
|
+
list.emit('select', list.items[idx], idx)
|
|
106
|
+
})
|
|
107
|
+
|
|
100
108
|
list.on('select', (item, idx) => {
|
|
101
109
|
const target = items[idx]
|
|
102
110
|
if (!target) { screen.remove(list); screen.render(); return }
|